Jupyter Notebook添加目录


两行命令:

conda install --yes -c conda-forget jupyter_conrib_nbextensions
jupyter nbextension enable toc2/main

当然,第一行命令也可以用pip install jupyter_contrib_nbextensions,此时需要jupyter notebook启动一下,如下图:
为Jupyter Notebook 添加目录
点击Nbextensions页面,勾选Table of Contents(2)也可以,看各位的习惯了。不过Nbextensions页面,如果是Table of Contents,此时命令行给需要更改将toc(2)/maintoc/main,即为:

conda install --yes -c conda-forget jupyter_conrib_nbextensions
jupyter nbextension enable toc/main

Ref:
1、知乎上一关于JupyterNotebook添加目录说明

相关文章: