好用到飞起的12个jupyter lab插件
1 简介
jupyter lab
作为jupyter notebook
的升级改造版,除了更加人性化的交互界面以及更多的用户自主定制功能之外,最吸引人的就是其丰富多样的拓展插件,使得每个使用jupyter lab
的人都可以按照自己所需挑选安装插件,组合出自己心中的完美工作台。
图1
本文就将给大家介绍在我的日常工作中经常使用到的12个jupyter lab
实用插件。
2 jupyter lab实用插件推荐
2.1 debugger
在jupyter notebook
或jupyter lab
中debug有多么蛋疼,尝试过的朋友们应该都有所体会。但随着jupyter lab
官方插件debugger
的横空出世,在jupyter lab
中进行debug变得不再痛苦,充满了乐趣:
图2
但要注意当前的debugger
插件基于xeus
内核,这是与我们平常使用的ipykernel
内核不太一样,所以要想在jupyter lab
中使用debugger
插件,需要先安装xeus
内核再进行debugger
的安装,安装过程命令如下:
conda install xeus-python=0.8.0 -c conda-forge
jupyter labextension install @jupyterlab/debugger
官方文档:https://github.com/jupyterlab/debugger
2.2 geojson-extension
对于经常处理矢量数据的朋友而言,geojson
格式的文件想必也是比较熟悉,而jupyter lab
中的geojson-extension
插件可以帮助我们在jupyter lab
界面中以地图可视化的方式打开查看geojson
文件:
图3
但要注意的是,因为是基于leaflet
的界面,所以不要用这种方式来查看要素太多的geojson
文件(不过应该没有人会用geojson
格式存大量矢量信息吧?)
安装命令:
jupyter labextension install @jupyterlab/geojson-extension
官方文档:https://github.com/jupyterlab/jupyter-renderers
2.3 jupyterlab-toc
jupyterlab-toc
帮助我们在notebook
界面利用markdown
来创建目录,辅助我们更好地整合梳理数据分析工作流:
图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
这个插件我们之前的文章仔细介绍过,帮助我们建立代码补全神器kite
与jupyter 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
以上就是本文的全部内容,如有疑问欢迎在评论区与我进行讨论~
- JavaScript 教程
- JavaScript 编辑工具
- JavaScript 与HTML
- JavaScript 与Java
- JavaScript 数据结构
- JavaScript 基本数据类型
- JavaScript 特殊数据类型
- JavaScript 运算符
- JavaScript typeof 运算符
- JavaScript 表达式
- JavaScript 类型转换
- JavaScript 基本语法
- JavaScript 注释
- Javascript 基本处理流程
- Javascript 选择结构
- Javascript if 语句
- Javascript if 语句的嵌套
- Javascript switch 语句
- Javascript 循环结构
- Javascript 循环结构实例
- Javascript 跳转语句
- Javascript 控制语句总结
- Javascript 函数介绍
- Javascript 函数的定义
- Javascript 函数调用
- Javascript 几种特殊的函数
- JavaScript 内置函数简介
- Javascript eval() 函数
- Javascript isFinite() 函数
- Javascript isNaN() 函数
- parseInt() 与 parseFloat()
- escape() 与 unescape()
- Javascript 字符串介绍
- Javascript length属性
- javascript 字符串函数
- Javascript 日期对象简介
- Javascript 日期对象用途
- Date 对象属性和方法
- Javascript 数组是什么
- Javascript 创建数组
- Javascript 数组赋值与取值
- Javascript 数组属性和方法
- OpenCV与图像处理(三)
- 常用功能加载宏——单元格数字转变
- OpenCV与图像处理(二)
- ECCV2020 | SOD100K:超低参数量的高效显著性目标检测算法,广义OctConv和动态权重衰减
- Rust FFI 编程 - Rust导出共享库02
- 常用功能加载宏——单元格数字格式
- 【翻译】200行代码讲透RUST FUTURES (2)
- 【Rust日报】2020-07-23 Rust 的 CI 将使用 GitHub Actions
- 【每周一库】- Tonic 基于Rust的gRPC实现
- 错误捕获
- 常用功能加载宏——单元格合并
- 【Rust日报】2020-07-25 RustScan:一个Rust实现的更快的Nmap
- 常用功能加载宏——单元格字符处理
- 【翻译】Rust生命周期常见误区
- 代码管理