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
以上就是本文的所有内容,若有疑问欢迎在评论区与我进行讨论~