jupyter_nbextensions安装就没有扩展项解决方法

侯沈义
2023-12-01

方法一

step1: jupyter_contrib_nbextensions

#用 pip 安装
pip install jupyter_contrib_nbextensions
#设置用户
jupyter contrib nbextension install --user

step2: jupyter_nbextensions_configurator

#用 pip 安装
pip install jupyter_nbextensions_configurator
#设置用户
jupyter contrib nbextension install --user
#启用用户
jupyter nbextensions_configurator enable --user

方法二

step1: jupyter_contrib_nbextensions

#用 conda 安装
conda install -c conda-forge jupyter_contrib_nbextensions
#设置用户
jupyter contrib nbextension install --users

step2: jupyter_nbextensions_configurator

#或用 conda 安装 ,二选一
conda install -c conda-forge jupyter_nbextensions_configurator
#设置用户
jupyter contrib nbextension install --user
#启用用户
jupyter nbextensions_configurator enable --user

一般推荐的是第一种方法,安装后jupyter上没有nbextensions的选项,后来用方法二的指令安装成功,注意把之前的安装的卸载,指令如下

pip uninstall jupyter_contrib_nbextensions
pip uninstall jupyter_nbextensions_configurator

 类似资料: