[PYTHON] Change the theme of Jupyter

Jupyter is convenient. After seeing Jupyter Notebook to my own specifications: Changing background and icons, I definitely wanted to change the background color. However, it is troublesome to play with CSS by myself, so I searched for an easy way to do it.

It seems easy to do with jupyter-themes.

Installation

% pip install jupyterthemes

How to use

% jt -h
usage: jt [-h] [-l] [-t THEME] [-f MONOFONT] [-fs MONOSIZE] [-nf NBFONT]
          [-nfs NBFONTSIZE] [-tf TCFONT] [-tfs TCFONTSIZE] [-m MARGINS]
          [-cursw CURSORWIDTH] [-cursc CURSORCOLOR] [-cellw CELLWIDTH]
          [-lineh LINEHEIGHT] [-alt] [-vim] [-T] [-N] [-r]

optional arguments:
  -h, --help            show this help message and exit
  -l, --list            list available themes
  -t THEME, --theme THEME
                        theme name to install
  -f MONOFONT, --monofont MONOFONT
                        monospace code font
  -fs MONOSIZE, --monosize MONOSIZE
                        code font-size
  -nf NBFONT, --nbfont NBFONT
                        notebook font
  -nfs NBFONTSIZE, --nbfontsize NBFONTSIZE
                        notebook fontsize
  -tf TCFONT, --tcfont TCFONT
                        txtcell font
  -tfs TCFONTSIZE, --tcfontsize TCFONTSIZE
                        txtcell fontsize
  -m MARGINS, --margins MARGINS
                        fix margins of main intro page
  -cursw CURSORWIDTH, --cursorwidth CURSORWIDTH
                        set cursorwidth (px)
  -cursc CURSORCOLOR, --cursorcolor CURSORCOLOR
                        cursor color (r, b, g, p)
  -cellw CELLWIDTH, --cellwidth CELLWIDTH
                        set cell width (px)
  -lineh LINEHEIGHT, --lineheight LINEHEIGHT
                        code/text line-height (%)
  -alt, --altlayout     alt markdown layout
  -vim, --vimext        toggle styles for vim
  -T, --toolbar         make toolbar visible
  -N, --nbname          nb name/logo visible
  -r, --reset           reset to default theme

Available themes

% jt -l
Available Themes: 
   chesterish
   grade3
   oceans16
   onedork

Install theme

% jt -t onedork
You are using Python 3.5
only versions 2.7, 3.3, 3.4 support custom settings
Installing onedork theme with default settings

It seems that there are some functions that cannot be used with Python 3.5, but the color has changed for the time being, so I will try using it for a while.

2016-09-20_10-52-25.png

Recommended Posts

Change the theme of Jupyter
Change the style of matplotlib
Change the background of Ubuntu (GNOME)
Change the suffix of django-filter / DateFromToRangeFilter
Change the length of Python csv strings
Script to change the description of fasta
Build the execution environment of Jupyter Lab
Display the graph of tensorBoard on jupyter
Change the order of PostgreSQL on Heroku
Change the destination batfish server of pybatfish
Change the font size of the legend in df.plot
Change the color of Fabric errors and warnings
Change the decimal point of logging from, to.
Fill the browser with the width of Jupyter Notebook
Change the resolution of Ubuntu running on VirtualBox
The beginning of cif2cell
the zen of Python
The story of sys.path.append ()
Revenge of the Types: Revenge of types
The kernel of jupyter notebook can no longer connect
Drawing on Jupyter using the plot function of pandas
[Django] Change the Default IP address of the runserver command
[Python] Let's change the URL of the Django administrator site
I tried to make it easy to change the setting of authenticated Proxy on Jupyter
[Python] Change the Cache-Control of the object uploaded to Cloud Storage
Scraping the result of "Schedule-kun"
The story of building Zabbix 4.4
Towards the retirement of Python2
About the camera change event of Google Maps Android API
[Apache] The story of prefork
How to change Jupyter layout
About the garbled Japanese part of pandas-profiling in Jupyter notebook
An introduction to object orientation-let's change the internal state of an object
I wrote the basic operation of Seaborn in Jupyter Lab
Compare the fonts of jupyter-themes
About the ease of Python
Explain the code of Tensorflow_in_ROS
Reuse the results of clustering
Change the log retention period of CloudWatch Logs in Lambda
How to see the contents of the Jupyter notebook ipynb file
GoPiGo3 of the old man
Calculate the number of changes
Change the volume of Pepper according to the surrounding environment (sound)
The popularity of programming languages
I wrote the basic operation of Numpy in Jupyter Lab.
Visualize the orbit of Hayabusa2
About the components of Luigi
Connected components of the graph
Filter the output of tracemalloc
About the features of Python
I wrote the basic operation of matplotlib with Jupyter Lab
Simulation of the contents of the wallet
The Power of Pandas: Python
How to change the log level of Azure SDK for Python
How to change the color of just the button pressed in Tkinter
Make the theme of Pythonista 3 like Monokai (how to make your own theme)
Find out the mystery change of Pokédex description by Levenshtein distance
Feel free to change the label of the legend in Seaborn in python
I found out by analyzing the reviews of the job change site! ??
[Go] Create a CLI command to change the extension of the image
I wrote the basic operation of Pandas with Jupyter Lab (Part 1)