欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

jupyter notebook安装插件,代码补全

程序员文章站 2022-05-25 12:33:17
...

在根据这个博客上的内容,给jupyter notebook时:
https://blog.csdn.net/weixin_37595559/article/details/81540482

  1. 首先安装nbextensions
pip install jupyter_contrib_nbextensions -i https://pypi.mirrors.ustc.edu.cn/simple
jupyter contrib nbextension install --user
  1. 安装nbextensions_configurator
pip install --user jupyter_nbextensions_configurator 
jupyter nbextensions_configurator enable --user

在我运行jupyter notebook的时候,并没有出现nbextension,而出报错:

Error loading server extension jupyter_nbextensions_configurator
    Traceback (most recent call last):
      File "/home/bryce1010/anaconda3/lib/python3.6/site-packages/notebook/notebookapp.py", line 1481, in init_server_extensions
        mod = importlib.import_module(modulename)
      File "/home/bryce1010/anaconda3/lib/python3.6/importlib/__init__.py", line 126, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen importlib._bootstrap>", line 994, in _gcd_import
      File "<frozen importlib._bootstrap>", line 971, in _find_and_load
      File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
    ModuleNotFoundError: No module named 'jupyter_nbextensions_configurator'

后来,我查阅*后,得知一条命令:

python -m pip install --user jupyter_contrib_nbextensions

问题解决!!!

相关标签: jupyter notebook