March 23, 2020

[Note] Jupyter-auto complete, dark theme

Auto Complete

> conda install -c conda-forge jupyter_nbextensions_configurator
> conda install jupyter_contrib_nbextensions
> jupyter nbextensions_configurator enable --user
> jupyter nbextension enable hinterland/hinterland

Dark Theme

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

or,

> conda install -c conda-forge jupyterthemes

Check below reference page for adding extensions and dark mode's graph set up.

e.g. C:\Users\<user name>\.ipython\profile_default\startup\00_startup.py:

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)


For pyplot, use this in Jupyter notebook:

import matplotlib.pyplot as plt
plt.style.use('dark_background')


Reference

https://medium.com/@rbmsingh/making-jupyter-dark-mode-great-5adaedd814db


No comments: