添加扩展工具后,Jupyter Notebook 的使用会更加方便快捷。
安装方式如下:
win + R 快捷键,输入cmd,调出命令控制台,选择想要的虚拟环境,或默认安装在anaconda 的base环境中。
conda install -c conda-forge jupyter_contrib_nbextensions
conda install -c conda-forge jupyter_nbextensions_configurator
或者
pip install jupyter_nbextensions_configurator jupyter_contrib_nbextensions
jupyter contrib nbextension install --user
jupyter nbextensions_configurator enable --user
最后打开Jupyter notebook 找到Nbextenstions,勾选想要的扩展工具。


-
Highlight select word高亮选中文字
选中某个地方的函数或变量,则其他地方同名的函数或变量会变成高亮文字,方便检查
Highlight select word
3.Table of Contents 内容列表
给创建的标题设置列表,方便导航

-
Variable Inspector 变量查看器
运行代码时,可以查看变量空间,方便调试
Viable Inspector.png

-
Hinterland代码提示与补全
image.png
-
其他好用的工具
1)ExcecuteTime: 查看代码执行时间
2)Codefolding: 代码折叠
3)Scratchpad: 提供一个草稿cell,方便随时测试输出
4)Notify: 跑长代码时,可用于在浏览器上通知结束
5)tqdm_notebook: 为循环代码显示执行进度条
网友评论