Customisation with Jupyter Themes

Manan Jain
2 min readJul 11, 2021

--

Source: Unsplash

When I first started learning python. Out of several other things like learning basics I started with how do I use Jupyter Notebook. Honestly the Jupyter notebook is a much better option when it comes to learning python without python IDLE. Even then I found it doesn’t look really nice. So I actually went to google to check how can I customize my Jupyter Notebook.

Jupyter is a free, open-source, interactive web tool, which researchers can use to combine software code, computational output, explanatory text and multimedia resources in a single document. So you see it is much much better than that boring python code in terminal for mac or windows.

Unfortunately, Jupyter notebook doesn’t come with any inbuilt option to change themes. So here is a nice and easy way to install the jupyter themes using pip.

pip install jupyterthemes
#this will install juypter notebook themes
pip install --upgrade jupyterthemes
#this will update it to the latest version

If you are having trouble with installing using pip. Try this code instead first.

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
#This will install the required setup tools to install the pip
python3 get-pip.py
#code to install pip
It would look something like this….

Once the installation finishes you can use the above commands to install jupyter themes. You can see the customised toolbars, text and code fonts, and other elements of the user interface once you install themes. Now to check which themes are available. You can use the below command.

jt -l
#This will list all the available themes
jt -t <name of the theme>
# Choose one of the theme from the list
!jt -r
#This will reset to the default theme

This is the most easy way to customize the jupyter notebook. There are more customization options available to do but for the basic needs these commands are more than sufficient and within few steps you can actually do it!

--

--

Manan Jain

CS Masters Student|| Paderborn University|| Python language enthusiast || Blogger