添加擴展工具后,Jupyter Notebook 的使用會更加方便快捷皂股。
安裝方式如下:
win + R 快捷鍵墅茉,輸入cmd,調(diào)出命令控制臺,選擇想要的虛擬環(huán)境就斤,或默認安裝在anaconda 的base環(huán)境中悍募。
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,勾選想要的擴展工具洋机。
比較有用的工具
Collapsible Headings
-
Highlight select word高亮選中文字
選中某個地方的函數(shù)或變量坠宴,則其他地方同名的函數(shù)或變量會變成高亮文字,方便檢查
Highlight select word
3.Table of Contents 內(nèi)容列表
給創(chuàng)建的標題設(shè)置列表绷旗,方便導(dǎo)航
Table of Contents.gif
-
Variable Inspector 變量查看器
運行代碼時喜鼓,可以查看變量空間,方便調(diào)試
Viable Inspector.png
Autopep8.gif
-
Hinterland代碼提示與補全
image.png 其他好用的工具
1)ExcecuteTime: 查看代碼執(zhí)行時間
2)Codefolding: 代碼折疊
3)Scratchpad: 提供一個草稿cell庄岖,方便隨時測試輸出
4)Notify: 跑長代碼時,可用于在瀏覽器上通知結(jié)束
5)tqdm_notebook: 為循環(huán)代碼顯示執(zhí)行進度條