求助:Jupyter Notebook安装Nbextensions目录插件遇兼容问题
解决Jupyter Notebook Nbextensions配置界面异常问题
步骤1:彻底清理环境残留
先卸载所有相关包,避免版本冲突:
pip3 uninstall -y jupyter notebook jupyter_contrib_nbextensions jupyter_nbextensions_configurator
步骤2:安装兼容版本组合
针对5.x版本的Jupyter Notebook,安装对应适配的Nbextensions包:
pip3 install notebook==5.7.16 pip3 install jupyter_contrib_nbextensions==0.5.1 pip3 install jupyter_nbextensions_configurator==0.4.1
步骤3:激活配置并重启
执行配置激活命令:
jupyter contrib nbextension install --user jupyter nbextensions_configurator enable --user
关闭所有Jupyter Notebook进程后重新启动:
jupyter notebook
步骤4:启用目录功能
进入Nbextensions配置页面,找到Table of Contents (2) 选项并勾选,刷新Notebook页面即可使用目录功能。
内容的提问来源于stack exchange,提问作者Smilada XD
相关产品推荐
相关产品推荐

