1 简介

  jupyter lab作为jupyter notebook的升级改造版,除了更加人性化的交互界面以及更多的用户自主定制功能之外,最吸引人的就是其丰富多样的拓展插件,使得每个使用jupyter lab的人都可以按照自己所需挑选安装插件,组合出自己心中的完美工作台。

图1

  本文就将给大家介绍在我的日常工作中经常使用到的12个jupyter lab实用插件。

2 jupyter lab实用插件推荐

2.1 debugger

  在jupyter notebookjupyter 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

  这个插件我们之前的文章仔细介绍过,帮助我们建立代码补全神器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

  

  以上就是本文的全部内容,如有疑问欢迎在评论区与我进行讨论~

好用到飞起的12个jupyter lab插件的更多相关文章

  1. (数据科学学习手札95)elyra——jupyter lab最强插件

    本文示例文件已上传至我的Github仓库https://github.com/CNFeffery/DataScienceStudyNotes 1 简介 jupyter lab是我最喜欢的编辑器,在过往 ...

  2. (数据科学学习手札95)elyra——jupyter lab平台最强插件集

    本文示例文件已上传至我的Github仓库https://github.com/CNFeffery/DataScienceStudyNotes 1 简介 jupyter lab是我最喜欢的编辑器,在过往 ...

  3. 这款拓展让你的jupyter lab更高效

    有一段时间没有分享过有关jupyter lab的内容了,今天给大家介绍一款实用的jupyter lab插件,可以帮助我们打造更灵活易用的jupyter lab. 图1 这款拓展的名称叫做jlab-en ...

  4. 基于jupyter lab搭建网页编程环境并添加自定义python kernel和matlab kernel以及plotly的使用

    内容转载自我的博客 目录 说明 1. 创建虚拟环境jupyter 2. 安装nodejs(用于jupyterlab安装扩展) 3. 安装pip包 4. 使用jupyterlab 5. 配置jupyte ...

  5. 使用Jupyter lab前应该读的几篇文章

    知乎上的一篇文章: 如何优雅的使用Jupyter? Jupyter Lab原来还有如下使用方式: 执行Shell命令 Hintland(提示命令).snippets(插入代码段).一键美化代码等功能( ...

  6. 【Python学习笔记】Jupyter Lab目录插件安装

    Jupyter Lab目录插件安装 当然首先你得有python和已经安装了jupyter lab. 1 安装jupyter_contrib_nbextensions 首先先安装jupyter_cont ...

  7. 2017.12.25 Mybatis物理分页插件PageHelper的使用(二)

    参考来自: 官方文档的说明:https://github.com/pagehelper/Mybatis-PageHelper/blob/master/wikis/zh/HowToUse.md 上篇博客 ...

  8. 机器学习中jupyter lab的安装方法以及使用的命令

    安装JupyterLab使用pip安装: pip install jupyterlab# 必须将用户级目录添加 到环境变量才能启动pip install --userbinPATHjupyter la ...

  9. jupyter lab(notebook)相关配置

    安装的是Anaconda3(Python 3.6.4),自带的版本较低,这里升级版本conda update jupyterlab 一.配置jupyter lab(notebook)远程访问 1.1 ...

随机推荐

  1. 第三方登陆--QQ登陆

    从零玩转第三方QQ登陆 在真正开始对接之前,我们先来聊一聊后台的方案设计.既然是对接第三方登录,那就免不了如何将用户信息保存.首先需要明确一点的是,用户在第三方登录成功之后, 我们能拿到的仅仅是一个代 ...

  2. java代理,静态代理、jdk代理、cglib代理、Aspectj

    我实在接触spring的时候才接触到代理这个东西的,一直想整理一下笔记. 什么是代理模式:代理模式是通过代理对象访问目标对象,这样可以在目标对象基础上增强额外的功能.简单来说就是要创建一个新的对象,我 ...

  3. 【SpringBoot MQ 系列】RabbitListener 消费基本使用姿势介绍

    [MQ 系列]RabbitListener 消费基本使用姿势介绍 之前介绍了 rabbitmq 的消息发送姿势,既然有发送,当然就得有消费者,在 SpringBoot 环境下,消费可以说比较简单了,借 ...

  4. 入门大数据---Spark_Streaming整合Kafka

    一.版本说明 Spark 针对 Kafka 的不同版本,提供了两套整合方案:spark-streaming-kafka-0-8 和 spark-streaming-kafka-0-10,其主要区别如下 ...

  5. 入门大数据---Elasticsearch是什么?

    Elasticsearch是谁不重要,重要的是咱们都知道百度,谷歌这样的搜索巨头吧.它们的核心技术都利用了Elasticsearch,所以我们有必要对Elasticsearch了解下! 1.Elast ...

  6. Python实用笔记 (8)高级特性——迭代

    如果给定一个list或tuple,我们可以通过for循环来遍历这个list或tuple,这种遍历我们称为迭代(Iteration). 比如dict就可以迭代: >>> d = {'a ...

  7. 119.杨辉三角II

    这道题和第118题是一样的,需要注意这道题目对行数的要求         # 定义一个列表,用来存放数据         num_list = []         for index1 in ran ...

  8. Centos7 上安装FastDFS

    Centos7 上安装 FastDFS 本文章摘抄于 风止鱼歇  博客地址:https://www.cnblogs.com/yufeng218/p/8111961.html 1.安装gcc(编译时需要 ...

  9. Java 从入门到进阶之路(二十七)

    在之前的文章我们介绍了一下 Java 中的  集合框架中的Collection,本章我们来看一下 Java 集合框架中的 Map. Map 接口定义的集合又称查找表,用于存储所谓“Key-Value” ...

  10. Isset、empty、count、is_null的比较

    1.empty判断变量是否为空, 先把变量转为布尔值再返回:对变量(字符串.数组等)赋值为一切为空的值.或者未定义的变量都返回true,即判断为空,比如null,' ',0,array(),false ...