進入命令行環境
安裝nbextensions
pip install --user jupyter_contrib_nbextensions -i https://pypi.mirrors.ustc.edu.cn/simple
jupyter contrib nbextension install --user
安裝nbextensions_configurator
pip install --user jupyter_nbextensions_configurator
jupyter nbextensions_configurator enable --user
安裝完成後,啓動Jupyter,可以看見標籤頁多了一個Nbextensions標籤
進入Nbextensions標籤頁面,該頁面即爲Jupyter的插件中心。勾選Hinterland即打開了自動補全功能,接下來打開一個notebook體驗一下吧。
插件中心中還有很多其他好用的功能,比如
Codefolding:代碼摺疊
Collapsible Headings:標題摺疊
格式化代碼
安裝yadf,然後在插件中心中勾選Code prettify,點擊標題可以自己設置快捷鍵
pip install yadf
啓用後可以按快捷鍵,或者點錘子圖標進行代碼自動整理
本文轉自
---------------------
作者:暮世華殤
來源:CSDN
原文:https://blog.csdn.net/qq_37087781/article/details/85110040