jupyter notebook中好用的插件
2020-10-27 本文已影响0人
生信编程日常
虽然jupyter notebook已经非常的人性化了,不过还是有些插件加上了之后用起来会更加的舒服。
下载:
pip install jupyter_contrib_nbextensions && jupyter contrib nbextension install
下载之后重启jupyter notebook导航栏出现Nbextensions:
![](https://img.haomeiwen.com/i20297934/91f3865fa88f69b0.png)
【Codefolding】
可以折叠代码块,当代码多的时候,这样非常整洁。
![](https://img.haomeiwen.com/i20297934/1ec78477ffc45359.png)
【Variable Inspector】
会在右上角出现变量表。
![](https://img.haomeiwen.com/i20297934/c68cf74ca877bba1.png)
【Scratchpad】
类似于打开一个便签,可以在当前内核上运行代码,但是不用再当前添加cell。使用 Shift + Enter 打开便签本,然后通过 Ctrl + B 将其关闭。
![](https://img.haomeiwen.com/i20297934/2df571c325da3944.png)
【Table of Contents (2)】
打开后会在左侧出现目录。
![](https://img.haomeiwen.com/i20297934/6725d9015f232a94.png)
以下是我的一个打开了目录和变量表的notebook:
![](https://img.haomeiwen.com/i20297934/79441dd43e52cea0.png)