1. 在命令行运行:pip install jupyter_contrib_nbextensions
2. 确保jupyter notebook已被关闭,在命令行运行:jupyter contrib nbextension install --user --skip-running-check
3. 启动jupyter notebook,选项栏出现Nbextensions,点击它。勾选Table of Contents。
4. ipynb内容页中进行设置。