1、在Jupyter中打开控制台
2、在控制台中执行以下两个命令:
pip install jupyter_contrib_nbextensions -i https://mirrors.aliyun.com/pypi/simple/
jupyter contrib nbextension install --user
pip install jupyter_contrib_nbextensions命令需要下载文件,请耐心等待。
3、执行完成后,重启Jupyter,会发现菜单中多了“Nbextensions”一项。
4、将下图红线出的选项选中,进入notebook后,编辑代码就可以智能提示了。