好用到飛起的12個jupyter lab插件

1 簡介

  jupyter lab做爲jupyter notebook的升級改造版,除了更加人性化的交互界面以及更多的用戶自主定製功能以外,最吸引人的就是其豐富多樣的拓展插件,使得每一個使用jupyter lab的人均可以按照本身所需挑選安裝插件,組合出本身心中的完美工做臺。python

圖1

  本文就將給你們介紹在個人平常工做中常常使用到的12個jupyter lab實用插件。git

2 jupyter lab實用插件推薦

2.1 debugger

  在jupyter notebookjupyter lab中debug有多麼蛋疼,嘗試過的朋友們應該都有所體會。但隨着jupyter lab官方插件debugger的橫空出世,在jupyter lab中進行debug變得再也不痛苦,充滿了樂趣:github

圖2

  但要注意當前的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

2.2 geojson-extension

  對於常常處理矢量數據的朋友而言,geojson格式的文件想必也是比較熟悉,而jupyter lab中的geojson-extension插件能夠幫助咱們在jupyter lab界面中以地圖可視化的方式打開查看geojson文件:markdown

圖3

  但要注意的是,由於是基於leaflet的界面,因此不要用這種方式來查看要素太多的geojson文件(不過應該沒有人會用geojson格式存大量矢量信息吧😁)ui

  安裝命令:插件

jupyter labextension install @jupyterlab/geojson-extension

  官方文檔:https://github.com/jupyterlab/jupyter-renderersdebug

2.3 jupyterlab-toc

  jupyterlab-toc幫助咱們在notebook界面利用markdown來建立目錄,輔助咱們更好地整合梳理數據分析工做流:excel

圖4

  安裝命令:

jupyter labextension install @jupyterlab/toc

  官方文檔:https://github.com/jupyterlab/jupyterlab-toc

2.4 jupyter-matplotlib

  jupyter-matplotlib幫助咱們在notebook界面配合matplotlib實現交互式的做圖,只須要在繪圖以前執行魔法命令%matplotlib widget,以後繪製的全部matplotlib圖表便可自動轉換爲交互式的:

圖5

  安裝命令:

pip install ipympl
jupyter labextension install @jupyter-widgets/jupyterlab-manager jupyter-matplotlib

  官方文檔:https://github.com/matplotlib/ipympl

2.5 jupyterlab-drawio

  jupyterlab-drawio是一個讓咱們能夠在jupyter lab界面內基於drawio繪製流程圖、思惟導圖等示意圖的插件:

圖6

  安裝命令:

jupyter labextension install jupyterlab-drawio

  官方文檔:https://github.com/QuantStack/jupyterlab-drawio

2.6 jupyterlab-execute-time

  jupyterlab-execute-time插件幫助咱們在jupyter lab中記錄每一個單元cell的執行開始以及運行耗時:

圖7

  安裝命令:

jupyter labextension install jupyterlab-execute-time

  官方文檔:https://github.com/deshaw/jupyterlab-execute-time

2.7 jupyterlab-plotly

  jupyterlab-plotly是一款幫助plotly圖像在jupyter lab中正常渲染的插件:

圖8

  安裝命令:

jupyter labextension install @jupyter-widgets/jupyterlab-manager plotlywidget@4.9.0

  官方文檔:https://github.com/plotly/plotly.py

2.8 jupyterlab-spreadsheet

  jupyterlab-spreadsheet幫助咱們在jupyter lab中查看錶格類文件,特別是其支持查看多工做表的excel表格文件:

圖9

  安裝命令:

jupyter labextension install jupyterlab-spreadsheet

  官方文檔:https://github.com/quigleyj97/jupyterlab-spreadsheet

2.9 jupyterlab-system-monitor

  jupyterlab-system-monitor經過在jupyter lab界面中添加資源監視器部件,能幫助咱們在工做過程當中方便的看到CPU、內存的實時佔用狀況:

圖10

  安裝命令:

pip install nbresuse
jupyter labextension install jupyterlab-topbar-extension jupyterlab-system-monitor

  官方文檔:https://github.com/jtpio/jupyterlab-system-monitor

2.10 keplergl-jupyter

  keplergl-jupyter是我使用很是頻繁的jupyter lab插件,由於沒有它就沒法在jupyter lab中正常使用keplergl

圖11

  安裝命令:

jupyter labextension install @jupyter-widgets/jupyterlab-manager keplergl-jupyter

  官方文檔:https://github.com/keplergl/kepler.gl/tree/master/bindings/kepler.gl-jupyter

2.11 jupyterlab-kite

  這個插件咱們以前的文章仔細介紹過,幫助咱們創建代碼補全神器kitejupyter lab之間的通道,幫助咱們在jupyter lab使用kite代碼補全服務:

圖12

  安裝命令(須要jupyter lab版本大於等於2.2.0):

pip install jupyter-kite
jupyter labextension install @kiteco/jupyterlab-kite

  官方文檔:https://github.com/kiteco/jupyterlab-kite

2.12 jupyterlab-variableInspector

  jupyterlab-variableInspector幫助咱們在jupyter lab中查看當前環境中存在的變量相關信息,以美觀的界面形式對多種類型的對象予以呈現:

圖13

  安裝命令:

jupyter labextension install @lckr/jupyterlab_variableinspector

  官方文檔:https://github.com/lckr/jupyterlab-variableInspector

  

  以上就是本文的所有內容,若有疑問歡迎在評論區與我進行討論~

相關文章
相關標籤/搜索