在 jupyter 正确安装 Nbextensions

参考:打开jupyter notebook 报错 404GET/static/components/marked/lib/marked.js?_SL1029_的博客-CSDN博客

1、安装指定版本的jupyter notebook

pip install jupyter notebook==6.4.8 -i https://pypi.tuna.tsinghua.edu.cn/simple

2、验证notebook版本安装正确

jupyter notebook --version

或

jupyter --version

3、参考【nbextensions模块安装失败解决】ERROR: Failed building wheel for jupyter-nbextensions-configurator_雪碧养乐多乌龙茶的博客-CSDN博客,安装0.5.1版本的jupyter_contrib_nbextensions

pip install jupyter_contrib_nbextensions -i https://pypi.tuna.tsinghua.edu.cn/simple

或下载后安装

pip install D:\folder\下载\jupyter_contrib_nbextensions-0.5.1-py2.py3-none-any.whl

4、激活jupyter_contrib_nbextensions

jupyter contrib nbextension install --user

5、安装指定版本的jupyter_nbextensions_configurator

pip install jupyter_nbextensions_configurator==0.5.0 -i https://pypi.tuna.tsinghua.edu.cn/simple

6、激活jupyter_nbextensions_configurator

jupyter nbextensions_configurator enable --user

7、打开jupyter notebook

jupyter notebook

8、验证成功
验证成功

补充:一些常用的扩展

  • Hinterland,代码自动补全。
  • Spellchecker,拼写检查工具,突出显示拼写错误的单词。
  • Collapsible headings,可折叠的标题,使用标题左侧的切换按钮折叠或展开标题下方的内容。
  • Toggle all line numbers,打开或关闭代码单元中的行号。
  • ExcecuteTime,计算每一个模块的时间,和运行结束时间。
  • Variable Inspector,显示所有构建的变量信息。
  • Jupyter Notebook markdown 添加目录
评论 8
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值