Install the python package
$pip install jupyter_contrib_nbextensions
$conda install -c conda-forge jupyter_contrib_nbextensions
Install javascript and css files
$jupyter contrib nbextension install --user
安装一些插件并启用插件管理器
$ jupyter nbextensions_configurator install --user $ jupyter nbextensions_configurator enable --user
打开jupyter notebook会发现菜单栏多了一个选项Nbextensions
记得勾选disable configuration for nbextensions without explicit compatibility (they may break your notebook environment, but can be useful to show for nbextension development),否则下方插件是不可选状态
选择插件
我们从上面可以看出,jupyter notebook有很多插件,我们可以选择几个插件
- Table of Contents
- Execute Time
- Nofity
- Codefolding
- Hinterland