Jupyter Notebook的16個超棒插件!
目錄

插件安裝
pip install jupyter_contrib_nbextensions -i https://pypi.tuna.tsinghua.edu.cn/simple
jupyter contrib nbextension install --user
pip install jupyter_nbextensions_configurator -i
以上三步結(jié)束,重新啟動jupyter notebook即可搞定,出現(xiàn)以下表示安裝完畢。
下面開始分享一些個人感覺實用的插件:

窗口分面:Scratchpad
新開一個窗口,在數(shù)據(jù)分析過程中非常有用,比如你畫了個圖,想對照著圖看繪圖數(shù)據(jù)、或者看看修改參數(shù)后的效果圖。
快捷鍵:Ctrl鍵+B鍵
Markdown文本高亮:Highlighter
高亮Markdown cell中選擇的文本。
%%javascript
require("base/js/utils").load_extensions("highlighter/highlighter")

Cell標(biāo)記、鎖定:Runtools
該插件為為默認(rèn)Cell的一個很好補充,先看下cell本來具有的功能:
Runtools中幾個有用功能重點介紹下,特別是標(biāo)記和鎖定cell。

代碼折疊:Code folding
代碼折疊
example、document快速獲取:Snippets menu
快速添加python、常見模塊的example、document等等。
PEP8 代碼優(yōu)化:Code prettify
按照PEP8 Python編碼規(guī)范美化代碼,依賴Google開發(fā)的YAPF模塊。
pip install yapf -i https://pypi.tuna.tsinghua.edu.cn/simple

代碼補全:Hinterland
代碼自動補全。 
顯示行號:Toggle all line numbers
顯示代碼行號。
jupyter notebook默認(rèn)自帶設(shè)置行號功能 
添加目錄:Table of Contents (2)
給notebook添加目錄 
按標(biāo)題折疊:Collapsible headings
notebook按標(biāo)題折疊
文件過濾:Tree Filter
文件過濾。 
代碼字號收縮:Code Font Size
代碼塊字體放大縮小。 
字符選中高亮:Highlight selected word
高亮選中的字符。
快捷鍵編輯:Keyboard shortcut editor
編輯、刪除已有快捷鍵;添加新的快捷鍵。
編輯模式切換:Select CodeMirror Keymap
如果你習(xí)慣了使用 emacs, vim, and sublime,該插件非常適合你。 
變量收集浮窗:Variable Inspector
使用浮窗表格收集notebook中的變量信息。
評論
圖片
表情
