首先说明,代码能通过按Tab键来手动补全,但太麻烦了
接下来,安装自动补全的插件
一、打开Anaconda Prompt
二、在命令行中依次执行下列命令
复制代码
1
2
3
4
5
6
7
8pip install jupyter_contrib_nbextensions -i https://pypi.tuna.tsinghua.edu.cn/simple jupyter contrib nbextension install --user pip install jupyter_nbextensions_configurator -i https://pypi.tuna.tsinghua.edu.cn/simple jupyter nbextensions_configurator enable --user
三、执行完后,重启jupyter notebook
会发现出现Nbextensions选项
点击进入,勾选Hinterland选项,完成操作
如果页面不能勾选,出现以下界面,在左上角找到disable选项,把勾划掉,就能勾选了
下面就能愉快的写代码了
最后
以上就是怕黑小蜜蜂最近收集整理的关于jupyter notebook代码自动补全的全部内容,更多相关jupyter内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复