Skip to content

Instantly share code, notes, and snippets.

@spothapragada
Last active April 13, 2020 02:37
Show Gist options
  • Select an option

  • Save spothapragada/b9b9ba56b0cc9aa0bd5eea9ff789b82e to your computer and use it in GitHub Desktop.

Select an option

Save spothapragada/b9b9ba56b0cc9aa0bd5eea9ff789b82e to your computer and use it in GitHub Desktop.

JupyterThemes

Set theme for jupyter notebooks after installing : conda install -c conda-forge jupyterthemes

jt -t monokai -f firacode -tf cardoserif -tfs 115 -nf ptsans -cellw 90% -T -N -kl

NBextensions

Install using: conda install -c conda-forge jupyter_contrib_nbextensions && jupyter contrib nbextension install

... and you'll have the options menu ready in the Edit drop down menu on a New notebook.

To have them available everytime you start a notebook server:

  • Install the packages
  • Create a jupyter notebook config file using: jupyter notebook --generate-config
  • Add these lines to the file:
import os
os.system('jt -t monokai -f firacode -tf cardoserif -tfs 115 -nf ptsans -cellw 90% -T -N -kl')
os.system('jupyter contrib nbextension install')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment