Jupyter代码自动补全配置
2019-05-16 本文已影响0人
波波在敲代码
为了实现Jupyter中代码的自动代码补全,需要安装 nbextensions和nbextensions_configurator:
cmd命令行下,nbextensions的安装:
pip install jupyter_contrib_nbextensions
jupyter contrib nbextension install --user
cmd命令行下,nbextensions_configurator的安装:
pip install jupyter_nbextensions_configurator
jupyter nbextensions_configurator enable --user
安装结束后,打开jupyter后在弹出的主页面里可以看到标签页新加了Nbextensions选项,点击并勾选Hinterland后即可实现代码自动补全。
如果安装失败,需要先执行卸载程序:
pip uninstall jupyter_contrib_nbextensions
pip uninstall jupyter_nbextensions_configurator
然后依次执行以下三条命令:
pip install jupyter_contrib_nbextensions
jupyter contrib nbextension install --user
pip install jupyter_nbextensions_configurator
image.png
参考文献
官方文档:https://github.com/ipython-contrib/jupyter_contrib_nbextensions/blob/master/README.md
夏树柏:https://blog.csdn.net/u011318077/article/details/85475622