Skip to content

Jupyter notebook

  • add Times New Roman
$ sudo apt install msttcorefonts -qq
$ rm ~/.cache/matplotlib -rf
  • add custome mplstyle
import matplotlib
import matplotlib.pyplot as plt
plt.style.available
matplotlib.matplotlib_fname()
#'/tool/venv_jupyter/lib/python3.10/site-packages/matplotlib/mpl-data/matplotlibrc'
!ls /tool/venv_jupyter/lib/python3.10/site-packages/matplotlib/mpl-data

!ls /tool/venv_jupyter/lib/python3.10/site-packages/matplotlib/mpl-data/stylelib

multi kernals

  • list
$ jupyter kernelspec list
  • install kernal
python -m ipykernel install --name "jupyter_ve36" --display-name "Py3.6"