Giter Club home page Giter Club logo

jupyter-themes's Introduction

jupyterthemes

Theme-ify your Jupyter Notebooks!

Author Version Status Demo
Kyle Dunovan image image Binder
plots & equations

image

markdown & text cells

image

pandas dataframes

image

command palette

image

oceans16 syntax

image

grade3 syntax

image

onedork syntax

image

chesterish syntax

image

Links

Requirements

  • Python 2.7, 3.3, 3.4, or 3.5
  • Jupyter (Anaconda recommended)

Recent updates

v0.14.2
v0.14.1
  • fixed linenumbers in onedork theme
v0.14.0
  • add solarized light theme (svendx4f: PR #84)
  • fixed bug that prevented theme reset
  • fixed bug that prevented cursor settings from being applied
  • made upload button visible on main page
  • other minor thematic adjustments

Install with pip

# install/upgrade to latest version
pip install --upgrade jupyterthemes

Known issues

  • Depending on your system, browser, etc., you may need to empty your browser cache after installing a new theme (-t) or attempting to restore the default (-r) in order for those changes to take effect. (see here for details)
  • If emptying the cache doesn't work, you may need to start a new jupyter session or restart your browser (see here for details)

Command Line Usage

usage: jt [-h] [-l] [-t THEME] [-f MONOFONT] [-fs MONOSIZE] [-nf NBFONT]
          [-nfs NBFONTSIZE] [-tf TCFONT] [-tfs TCFONTSIZE] [-m MARGINS]
          [-cursw CURSORWIDTH] [-cursc CURSORCOLOR] [-cellw CELLWIDTH]
          [-lineh LINEHEIGHT] [-alt] [-vim] [-T] [-N] [-r]
options arg default
Usage help -h --
List Themes -l --
Theme Name to Install -t --
Code Font -f droidmono
Code Font-Size -fs 11
Notebook Font -nf exosans
Notebook Font Size -nfs 13
Text/MD Cell Font -tf loraserif
Text/MD Cell Fontsize -tfs 13
Intro Page Margins -m auto
Cell Width -cellw 980
Line Height -lineh 170
Cursor Width -cursw 2
Cursor Color -cursc --
Alt Text/MD Layout -alt --
Alt Prompt Layout -altp --
Style Vim NBExt* -vim --
Toolbar Visible -T --
Name & Logo Visible -N --
Restore Default -r --

Examples

# list available themes
# oceans16 | grade3 | chesterish | onedork | monokai | solarized-light
jt -l

# select theme...
jt -t chesterish

# restore default theme
# NOTE: Need to delete browser cache after running jt -r
# If this doesn't work, try starting a new notebook session.
jt -r

# toggle toolbar ON and notebook name ON
jt -t grade3 -T -N

# set code font to 'Roboto Mono' 12pt
# (see monospace font table below)
jt -t oceans16 -f roboto -fs 12

# set code font to Fira Mono, 11.5pt
# 3digit font-size gets converted into float (115-->11.5)
jt -t grade3 -f fira -fs 115

# set text-cell/markdown and notebook fonts
# (see sans-serif & serif font tables below)
jt -t onedork -tf georgiaserif -nf droidsans

# adjust cell width, line-height of codecells
jt -t chesterish -cellw 900 -lineh 170

# fix the container-margins on the intro page (defaults to 'auto')
jt -t onedork -m 200

# adjust cursor width (in px) and make cursor red (r)
# options: b (blue), o (orange), r (red), p (purple), g (green)
jt -t grade3 -cursc r -cursw 5

# toggle toolbar ON and notebook name ON
jt -t grade3 -T -N

# choose alternate txt/markdown layout (-alt)
# and alternate cell prompt (narrow, no numbers)
jt -t grade3 -alt -altp

Monospace Fonts (codecells)

-f arg Monospace Font
anka Anka/Coder
anonymous Anonymous Pro
aurulent Aurulent Sans Mono
bitstream Bitstream Vera Sans Mono
bpmono BPmono
code Code New Roman
consolamono Consolamono
cousine Cousine
dejavu DejaVu Sans Mono
droidmono Droid Sans Mono
fira Fira Mono
firacode Fira Code
generic Generic Mono
hack Hack
inconsolata Inconsolata-g
inputmono Input Mono
liberation Liberation Mono
meslo Meslo
office Office Code Pro
oxygen Oxygen Mono
roboto Roboto Mono
saxmono saxMono
source Source Code Pro
sourcemed Source Code Pro Medium
ptmono PT Mono
ubuntu Ubuntu Mono

Sans-Serif Fonts

-nf/-tf arg Sans-Serif Font
exosans Exo_2
opensans Open Sans
droidsans Droid Sans
latosans Lato
ptsans PT Sans
robotosans Roboto
sourcesans Source Sans Pro
amikosans Amiko
nobilesans Nobile
alegreyasans Alegreya
armatasans Armata
cambaysans Cambay
catamaransans Catamaran
franklinsans Libre Franklin
frankruhlsans Frank Ruhl
gothicsans Carrois Gothic
gudeasans Gudea
hindsans Hind
jaldisans Jaldi
makosans Mako
merrisans Merriweather Sans
mondasans Monda
oxygensans Oxygen Sans
pontanosans Pontano Sans
puritansans Puritan Sans
ralewaysans Raleway

Serif Fonts

-nf/-tf arg Serif Font
loraserif Lora
andadaserif Andada
arapeyserif Arapey
ptserif PT Serif
georgiaserif Georgia
cardoserif Cardo
crimsonserif Crimson Text
droidserif Droid Serif
ebserif EB Garamond
merriserif Merriweather
notoserif Noto Serif
vesperserif Vesper Libre
scopeserif ScopeOne
sanchezserif Sanchez
neutonserif Neuton
rasaserif Rasa
goudyserif Sorts Mill Goudy
vollkornserif Vollkorn

jupyter-themes's People

Contributors

dunovank avatar osamaar avatar rsokl avatar vmuriart avatar miraculixx avatar sv3ndk avatar mheilman avatar github-bdem avatar

Watchers

carlos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.