DATA SCIENCE MADE SIMPLE
How Can I Customize Jupyter Notebook Into Dark Mode
A story to customize Jupyter Notebook themes and adjust Maptlotlib parameters easily

Jupyter Notebook is an interactive compiler that allows users to create and share documents that contain live code, equations, visualizations, and narrative text. It is a spin-off project from IPython. Almost all of us just know Jupyter Notebook only can compile Python code. Surprise, Jupyter Notebook also can compile Julia, R, Haskell, and Ruby.
The simplest way to install Jupyter Notebook is by installing via Anaconda. Anaconda gives you a completed package for your Python or R programming. To open it, you just find Jupyter Notebook in your application list. You can also open it via Command Prompt by typing jupyter notebook and press Enter. In Linux, you can install it via pip. You can do the same procedures in Windows to open it, but just type it in Terminal.
After you open it, you will be shown a display like this.

At least, there are 4 types of cell you can create, they are
- Code, you can run a code in this type of cell.
- Markdown, you can create an HTML ‘code’ in this cell.
- Raw NBConvert, this kind of cell is providing you a raw text.
- Heading, you can create a heading for your interactive file.
This is the example of Code cell type that run of R-code and Python-code. The indicator is shown at the top right corner. You can see symbol of R and Python on it.


If you want to be guided on how to install R in Jupyter Notebook, you can leave a comment below.
This is the Markdown cell. I show you the example of enhancing your Jupyter Notebook by creating a nice cell using HTML. The first line will produce a centered title and the second line produce two paragraphs followed by a picture and its link.

After you run two cells above, you will get results like this

It’s pretty cool!!!
Next, is the example of Raw NBConvert cell type. Here it is.

There is no result expect just a text. I think, Raw NBConvert is similar with comment in Python but in interactive version.
The last is Heading cell type, here is the example

The cell will give you a result as follows

You can create a different size of your heading with Markdown cell type as mentioned before.
This article will guide you to change the Jupyter Notebook theme. If you inspect some pictures above, you will realize that the default themes of Jupyter Notebook is white. Yups, I will give you a tutorial to change it into dark mode.
First, you need to install jupyter notebook themes, using this code
# install jupyterthemes
pip install jupyterthemes
# upgrade to latest version
pip install --upgrade jupyterthemesIf you face some problems, the simplest solution is upgrading your Jupyter Notebook. If you got a problem with permissions, just change the permission. Please leave a comment if you got another problem. Maybe, I can give you some alternatives.
After installing jupyterthemes, you can read the documentation by writing
jt -hin your Terminal or Command Prompt.
There are 9 different themes that is provided by jupyterthemes, they are chesterish, grade3, gruvboxd, gruvboxl, monokai, oceans16, onedork, solarizedd, and solarizedl. You can check the list by writing this code
jt -lIt will give you this list

To change your Jupyter Notebook themes, you can write jt -t name_themes
jt -t chesterishAfter do it, you can refresh your Jupyter Notebook file. Here is the example of all of themes provided by jupyterthemes.



If you are not interested in dark mode, you can try this following themes



Or this light mode themes



Just choose your favorite themes :D.
To change it into default themes, you can write this code
jt -rHere is the default themes.

If you think this article is over here. No!! :D. I will give another cool method to change the Matplotlib parameters using jupyterthemes.
jupyterthemes provide you some cool fonts to be applied in your plot, they are

How to use it, here it is (source: Dunovank)
