Making Jupyter Dark Mode Great!

Raveen Beemsingh
Mar 11, 2019 · 2 min read

Jupyter is one of my favorite tool these days. I love the dark mode Theme on it. The following are some of the awesome tweaks I have done to make it cool. If you are spending a lot of time on this tool, make it the best!

  1. Install Jupyter Theme, use instructions from here and choose the Monokai theme and run the following from the terminal →

jt -t monokai -f fira -fs 13 -nf ptsans -nfs 11 -N -kl -cursw 5 -cursc r -cellw 95% -T

This results in this

If you are using Dark Reader or other Browser extension play around with its setting as its settings will interfere with Jupyter’s, I have set up a rule to turn it off for my Notebooks

2. Install Notebook Extensions use from here and enable the following

a. Hinterland — Code Complete

b. Scratchpad — Single Cell Test/Run like ls or pwd or just some list comprehension

c. Autopep8 — format code to look pretty

d. Table Beautifier — as the name suggests

which results in this

3. The graphs and plots can sometimes mess up if you are using dark mode from the themes above, as shown below here, notice the axes are not clear here →

But, here is a hack for it

Make a file named 00_startup.py in ~/.ipython/profile_default/startup and stick the following snippet into it, and restart Jupyter, details are here

import os
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns

from jupyterthemes import jtplot
jtplot.style(theme=’monokai’, context=’notebook’, ticks=True, grid=False)

And you are all done, Enjoy your deep data dives!

Raveen Beemsingh

Written by

Hacker, Tinkerer & Entrepreneur. Python & AI/ML Enthusiast. Founder-Developer. Co-Founder & SVP Software at Hammerhead https://www.hammerhead.io

More From Medium

Also tagged Programming

Also tagged Programming

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade