JupyterLab 的安装与使用

什么是JupyterLab?

JupyterLab is the next-generation user interface for Project Jupyter offering all the familiar building blocks of the classic Jupyter Notebook (notebook, terminal, text editor, file browser, rich outputs, etc.) in a flexible and powerful user interface. JupyterLab will eventually replace the classic Jupyter Notebook.

简单的来讲,JupyterLab 是Jupyter Notebook 的下一代产品,集成了更多的功能,最终会慢慢代替Jupyter Notebook

安装

可以使用conda 或者 pip 来安装

Conda

conda install -c conda-forge jupyterlab

Pip

pip install jupyterlab

运行

jupyter lab

JupyterLab 就会自动在浏览器运行。
⚠️ 这里启动时遇到一个问题:
ImportError: cannot import name 'secure_write' from 'jupyter_core.paths'
ImportError: cannot import name 'secure_write' from 'jupyter_core.paths'

👋 解决方法,更新:

pip3 install jupyter_core --upgrade

如果用conda 的话:

conda update jupyter_core

依赖和支持的浏览器

需要安装,Jupyter notebook 的 4.3或之后版本。
最新的版本可以在以下的浏览器中运行:

  1. Firefox
  2. Chrome
  3. Safari

成功运行!
成功运行!
我在Settings 里面将主题设置成了Dark,跟系统的暗黑系就很搭了。

安装插件

安装插件可以使用命令行工具:

jupyter labextension install @jupyterlab/toc

也可以在页面内使用管理工具安装,但是默认插件栏是不显示的,需要设置,显示插件栏。

在这里插入图片描述
在User Preferences 里输入{'enabled':true}点击右上角保存,点击红色的Enable ,侧边就会出现插件栏了。
在这里插入图片描述
有了插件栏
最后

接下来我就用Jupyter Lab 学习python 和做笔记了。

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值