jupyter lab
做爲jupyter notebook
的升級改造版,除了更加人性化的交互界面以及更多的用戶自主定製功能以外,最吸引人的就是其豐富多樣的拓展插件,使得每一個使用jupyter lab
的人均可以按照本身所需挑選安裝插件,組合出本身心中的完美工做臺。python
本文就將給你們介紹在個人平常工做中常常使用到的12個jupyter lab
實用插件。git
在jupyter notebook
或jupyter lab
中debug有多麼蛋疼,嘗試過的朋友們應該都有所體會。但隨着jupyter lab
官方插件debugger
的橫空出世,在jupyter lab
中進行debug變得再也不痛苦,充滿了樂趣:github
但要注意當前的debugger
插件基於xeus
內核,這是與咱們日常使用的ipykernel
內核不太同樣,因此要想在jupyter lab
中使用debugger
插件,須要先安裝xeus
內核再進行debugger
的安裝,安裝過程命令以下:json
conda install xeus-python=0.8.0 -c conda-forge jupyter labextension install @jupyterlab/debugger
官方文檔:https://github.com/jupyterlab/debuggerbash
對於常常處理矢量數據的朋友而言,geojson
格式的文件想必也是比較熟悉,而jupyter lab
中的geojson-extension
插件能夠幫助咱們在jupyter lab
界面中以地圖可視化的方式打開查看geojson
文件:markdown
但要注意的是,由於是基於leaflet
的界面,因此不要用這種方式來查看要素太多的geojson
文件(不過應該沒有人會用geojson
格式存大量矢量信息吧😁)ui
安裝命令:插件
jupyter labextension install @jupyterlab/geojson-extension
官方文檔:https://github.com/jupyterlab/jupyter-renderersdebug
jupyterlab-toc
幫助咱們在notebook
界面利用markdown
來建立目錄,輔助咱們更好地整合梳理數據分析工做流:excel
安裝命令:
jupyter labextension install @jupyterlab/toc
官方文檔:https://github.com/jupyterlab/jupyterlab-toc
jupyter-matplotlib
幫助咱們在notebook
界面配合matplotlib
實現交互式的做圖,只須要在繪圖以前執行魔法命令%matplotlib widget
,以後繪製的全部matplotlib
圖表便可自動轉換爲交互式的:
安裝命令:
pip install ipympl jupyter labextension install @jupyter-widgets/jupyterlab-manager jupyter-matplotlib
官方文檔:https://github.com/matplotlib/ipympl
jupyterlab-drawio
是一個讓咱們能夠在jupyter lab
界面內基於drawio
繪製流程圖、思惟導圖等示意圖的插件:
安裝命令:
jupyter labextension install jupyterlab-drawio
官方文檔:https://github.com/QuantStack/jupyterlab-drawio
jupyterlab-execute-time
插件幫助咱們在jupyter lab
中記錄每一個單元cell的執行開始以及運行耗時:
安裝命令:
jupyter labextension install jupyterlab-execute-time
官方文檔:https://github.com/deshaw/jupyterlab-execute-time
jupyterlab-plotly
是一款幫助plotly
圖像在jupyter lab
中正常渲染的插件:
安裝命令:
jupyter labextension install @jupyter-widgets/jupyterlab-manager plotlywidget@4.9.0
官方文檔:https://github.com/plotly/plotly.py
jupyterlab-spreadsheet
幫助咱們在jupyter lab
中查看錶格類文件,特別是其支持查看多工做表的excel表格文件:
安裝命令:
jupyter labextension install jupyterlab-spreadsheet
官方文檔:https://github.com/quigleyj97/jupyterlab-spreadsheet
jupyterlab-system-monitor
經過在jupyter lab
界面中添加資源監視器部件,能幫助咱們在工做過程當中方便的看到CPU、內存的實時佔用狀況:
安裝命令:
pip install nbresuse jupyter labextension install jupyterlab-topbar-extension jupyterlab-system-monitor
官方文檔:https://github.com/jtpio/jupyterlab-system-monitor
keplergl-jupyter
是我使用很是頻繁的jupyter lab
插件,由於沒有它就沒法在jupyter lab
中正常使用keplergl
:
安裝命令:
jupyter labextension install @jupyter-widgets/jupyterlab-manager keplergl-jupyter
官方文檔:https://github.com/keplergl/kepler.gl/tree/master/bindings/kepler.gl-jupyter
這個插件咱們以前的文章仔細介紹過,幫助咱們創建代碼補全神器kite
與jupyter lab
之間的通道,幫助咱們在jupyter lab
使用kite
代碼補全服務:
安裝命令(須要jupyter lab
版本大於等於2.2.0):
pip install jupyter-kite jupyter labextension install @kiteco/jupyterlab-kite
官方文檔:https://github.com/kiteco/jupyterlab-kite
jupyterlab-variableInspector
幫助咱們在jupyter lab
中查看當前環境中存在的變量相關信息,以美觀的界面形式對多種類型的對象予以呈現:
安裝命令:
jupyter labextension install @lckr/jupyterlab_variableinspector
官方文檔:https://github.com/lckr/jupyterlab-variableInspector
以上就是本文的所有內容,若有疑問歡迎在評論區與我進行討論~