Python – How to reset jupyter notebook theme to default

jupyterjupyter-notebookpythonpython-3.x

I'm using the jupyter notebook installed with Anaconda (I'm on Mac). Few days ago, I wanted to change the theme to have a dark background, and I followed the instructions here. Namely, I've downloaded the theme custom.css and placed it in ~/.jupyter/custom/. It worked very well.

I liked the theme, but I would like to go back to the default one (this one does not show the main toolbar, among other things). I tried to remove the custom.css from its folder, I reset my terminal, but nothing changes! I'm guessing that jupyter keeps a copy of the themes somewhere that I should delete, but I can't find it.

I have also tried uninstalling jupyter and reinstalling, following the commands:

conda update conda
conda uninstall ipython
conda install jupyter

Again, no change. I'm stuck with my black background theme with no toolbar.

Best Answer

An easier way might be to do:

pip install jupyterthemes

Now you can choose from the following given themes and activate it like this

# list available themes
# onedork | grade3 | oceans16 | chesterish | monokai | solarizedl | solarizedd
jt -t <THEME_NAME>

In order to reset your theme to the default theme just use

jt -r

For all information and more, visit github.com/dunovank/jupyter-themes

Hope this helps!