Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reset jupyter notebook theme to default?

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.

like image 618
marguerite Avatar asked Nov 18 '16 17:11

marguerite


People also ask

How do I reset my jupyter notebook?

You can restart your Jupyter Kernel by simply clicking Kernel > Restart from the Jupyter menu. Note: This will reset your notebook and remove all variables or methods you've defined! Sometimes you'll notice that your notebook is still hanging after you've restart the kernel. If this occurs try refreshing your browser.

How do I get dark Jupyter mode?

Use FireFox Plug-in "Darker Jupyter". It will work as long as Firefox is the default browser.


1 Answers

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!

like image 99
M. Glombek Avatar answered Sep 27 '22 23:09

M. Glombek