不管是通过anaconda安装的jupyter notebook,还是通过命令行pip intall jupyter安装的jupyter notebook在编写代码的时候,都没有智能提示的。因为没有安装jupyter_contrib_nbextensions。如下图:

安装 jupyter_contrib_nbextensions的方法如下:

pip install jupyter_contrib_nbextensions
jupyter contrib nbextension install
pip install jupyter_nbextensions_configurator
jupyter nbextensions_configurator enable
安装完成后,重新打开jupyter notebook,则出现nbextensions菜单,如下:

 

选择Nbextendsions,界面如下:

将disable configuration for nbextensions without explicit compatibility (they may break your notebook environment, but can be useful to show for nbextension development)这个复选框不选中。

 

然后将勾选Hinteriand

再回到代码行,在写代码的时候,就会有智能提示了。

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐