1. 安装Jupyter Notebook extensions
conda install -c conda-forge jupyter_contrib_nbextensions
jupyter contrib nbextension install --user --skip-running-check
2. 开启Table of Contents插件
安装完成后打开jupyter notebook,会出现“Nbextensions”,然后点击“Nbextensions”,并勾选“Table of Contents”。
3. 生成目录
在notebook选项组中多了生产目录的图标,点击图标便会生成notebook里相应的目录,如下所示: