jupyter notebook实现自动补全代码


进入命令行(如果有其他环境,需要先激活其他环境,否则会在base环境中安装)

使用pip安装指令

首先安装nbextensions

pip install --user jupyter_contrib_nbextensions -i https://pypi.mirrors.ustc.edu.cn/simple
jupyter contrib nbextension install --user

其次安装nbextensions_configurator

pip install --user jupyter_nbextensions_configurator 
jupyter nbextensions_configurator enable --user

使用conda指令

前提是已经下载Anaconda或Miniconda,使用Anaconda Prompt激活命令行

conda install -c conda-forge jupyter_contrib_nbextensions
conda install -c conda-forge jupyter_nbextensions_configurator

使用pip指令安装若出现错误,先使用pip uninstall jupyter_contrib_nbextensions pip uninstall jupyter_nbextensions_configurator指令卸载之前的包,然后建议使用conda指令安装下载,但会多下载一点不必要的依赖包,不超过50M。

查看安装结果

安装成功,则出现如图结构
安装成功,则出现如图插件
勾选所需插件
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_44333597/article/details/109187785