/jupyter-themes

Custom Jupyter Notebook Themes

Primary LanguageCSSMIT LicenseMIT

jupyterthemes

Theme-ify your Jupyter Notebooks!

jt -t chesterish -cw 850 -fs 10

image

jt -t oceans16 -alt -fs 10 -cw 900

image

jt -t onedork -fs 10 -cw 850

image

jt -t grade3 -alt -fs 10 -cw 900 -tcff serif

image

jt -t onedork -nbff serif -tcff serif

image

Install with pip

pip install jupyterthemes

How To...

usage: jt [-l] [-t THEME] [-f MONOFONT] [-fs MONOSIZE ] [-nbff NBFONTFAM]  
        [-tcff TCFONTFAM] [-cw CELLWIDTH] [-lh LINEHEIGHT] [-alt] [-T]  [-r ]
options arg default
List Themes -l --
Select Theme -t --
Code Font -f Hack
Code Font-Size -fs 11
NB Font-Family -nbff sans-serif
TxtCell Font-Family -tcff sans-serif
Cell Width -cw 940
Line Height -lh 160
Alt Txt/MD Layout -alt --
Make Toolbar Visible -T --
Restore Default -r --

Importable Code Fonts from Google Fonts API

Font-Name -f comments
Hack -- italics
Roboto Mono roboto italics
Space Mono space italics
Anonymous Pro anon italics
Cousine cousine italics
Ubuntu Mono ubuntu italics
Source Code Pro source normal
Fira Mono fira normal
Droid Sans Mono droid normal
Oxygen Mono oxygen normal
Inconsolata incon normal

Examples

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

# select theme...
jt -t chesterish

# toggle toolbar ON [Default: hidden]
jt -t grade3 -T

# set code font to 'Space Mono' 12pt
# see table above for more options
jt -t oceans16 -f space -fs 12

# set notebook & text-cell font-family to serif
# both default to sans-serif
jt -t onedork -nbff serif -tcff serif

# adjust cell width and line-height
jt -t chesterish -cw 870 -lh 170

# choose alternate txt/markdown layout
jt -t grade3 -alt -fs 10 -cw 900 -tcff serif

# restore default theme
jt -r