Jupyter Notebook设置自动补全代码

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接: https://blog.csdn.net/xiewenrui1996/article/details/100935435

1、直接使用anaconda中的cmd或者terminal等终端进入命令行。激活你想要配置代码补全的环境

2、安装nbextensions

在cmd终端环境中输入下列代码

pip install jupyter_contrib_nbextensions

3、上面安装完成后执行下列代码

jupyter contrib nbextension install --user --skip-running-check

安装完成后,勾选 “Table of Contents” 以及 “Hinterland”。

其中 Hinterland 是用来自动补全代码的,这个拓展的代码补全功能虽然没有 PyCharm中的那么全面,但比没有是要好多了。

勾选完成后重启juypter就可以啦 

猜你喜欢

转载自blog.csdn.net/xiewenrui1996/article/details/100935435