转载请在文章起始处注明出处,谢谢。
在jupyter notebook中补全要按tab键,不太方便。jupyter notebook有扩展插件jupyter_contrib_nbextensions,可以实现自动补全(这就是飞翔的感觉~)。
首先要安装扩展插件,以该用户身份运行。
pip install jupyter_contrib_nbextensions -i https://pypi.tuna.tsinghua.edu.cn/simple
jupyter nbextensions_configurator enable --user
如果不知道啥是换源,建议先看下使用技巧(1)
重新打开jupyter notebook,会看到下图:

打开,勾选Hinterland即启用了代码自动补全。

如果没有看到插件,则运行以下代码:
jupyter contrib nbextension install --user --skip-running-check
以下内容极度舒适。

扩展插件还有很多可以勾选的项目,有时间可以再研究研究,欢迎沟通交流。
网友评论