原文地址为:https://blog.csdn.net/zyp361161/article/details/86658666
本次要介绍的两个功能是:
(1)针对 jupyter notebook 中的 Markdown 文件自动生成目录
(2)自动补全代码
上述两个功能,都是有 python的一个 jupyter 扩展插件Nbextensions库来实现。
安装该库的命令如下:
python -m pip install jupyter_contrib_nbextensions
然后执行:
jupyter contrib nbextension install --user --skip-running-check
安装完成后,勾选 “Table of Contents” 以及 “Hinterland”。
其中 Hinterland 是用来自动补全代码的,这个拓展的代码补全功能虽然没有 PyCharm中的那么全面,但比没有是要好多了。
设置如下:
选择插件
自动补全代码的效果如下:
自动补全效果