首页 热点专区 小学知识 中学知识 出国留学 考研考公
您的当前位置:首页正文

jupyter lab 打开方式

2024-12-09 来源:要发发知识网

Jupyter Lab 是 Jupyter Notebook 的下一代升级版,界面相对更友好,功能也更强大,更像一个IDE了。


0. 安装jupyterlab

pip install jupyterlab

1. jupyterlab的三种打开方式(windows)

1.1 命令行打开

在工作目录,打开命令行工具,输入:

jupyter lab
  • 注意,jupyter lab 会默认继承 jupyter notebook 的相关配置,如果之前有改过的话。

1.2 用bat文件打开

在工作目录,新建jupyter_lab.bat文件,文件内容填入:

jupyter lab

下次双击打开jupyter_lab.bat文件即可。

1.3 右键菜单打开

在右键菜单里添加 jupyter lab here按钮,方法如下:

  • 新建注册表文件jupyter lab here.reg,内容:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\directory\background\shell\Jupyter Lab Here]
"icon"="C:\\Users\\xxxx\\python\\3.6.8\\Lib\\site-packages\\notebook\\static\\favicon.ico"

[HKEY_CLASSES_ROOT\directory\background\shell\Jupyter Lab Here\command]
@="C:\\Users\\xxxx\\python\\3.6.8\\Scripts\\jupyter-lab.exe"
  • favicon.ico,jupyter-lab.exe的路径按实际情况修改
  • 双击jupyter lab here.reg文件,注入注册表即可!
显示全文