Skip to content

Instantly share code, notes, and snippets.

@davegreenwood
Created June 15, 2019 11:24
Show Gist options
  • Save davegreenwood/95f24db196f29fea7164cd4b95fd3863 to your computer and use it in GitHub Desktop.
Save davegreenwood/95f24db196f29fea7164cd4b95fd3863 to your computer and use it in GitHub Desktop.
Set up for jupiter notebooks, including dark themes.

Setting up jupyter notebook

First install jupyter themes to change appearance.

pip install jupyterthemes

Then, set the theme to taste

jt -t onedork \
-m 10% \
-f firacode -fs 11 \
-nf ptsans -nfs 11 \
-tf ptsans -tfs 11 \
-ofs 11 \
-kl -T \
-cursw 2 -cursc r \
-cellw 85%

Jupyter extensions and the extension manager:

pip install jupyter_contrib_nbextensions \
    && jupyter contrib nbextension install

Create a notebook config file by running

jupyter notebook --generate-config

Set the jupyter browser, for example:

c.NotebookApp.browser = (
    u'/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome %s')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment