参考链接:https://blog.csdn.net/pursuit__/article/details/106196202
1、首先,在Anoconda Prompt 安装插件
运行:pip install jupyter_contrib_nbextensions
2、其次,确保jupyter notebook已被关闭,在命令行运行:jupyter contrib nbextension install --user
3、再次,打开jupyter notebook,选择Nbextensions,勾选 Table of Contents
4、最后勾选disable即可。