介绍
JupyterLab 1.0: Jupyter’s Next-Generation Notebook Interface
JupyterLab is a web-based interactive development environment for Jupyter notebooks, code, and data. JupyterLab is flexible: configure and arrange the user interface to support a wide range of workflows in data science, scientific computing, and machine learning. JupyterLab is extensible and modular: write plugins that add new components and integrate with existing ones.
安装
pip install jupyterlab
如果因为网络问题安装失败
可以尝试
pip install jupyterlab -i https://pypi.tuna.tsinghua.edu.cn/simple/
配置
1 .设置密码
[1]进入python解释器执行下列命令
from notebook.auth import passwd
passwd()
[2]提示输入密码 输入后会自动生成一个hash值
Enter password:
Verify password:
Out[3]: 'sha1:2115e664151d:34d556943976a9feb75717f14553fd507e628664'
2 .修改配置文件
jupyter lab --generate-config
执行命令会生成一个py文件的地址 编辑文件
vim /home/ruoke/.jupyter/jupyter_notebook_config.py
配置下面对应配置
c.NotebookApp.allow_root =True
c.NotebookApp.open_browser =False
c.NotebookApp.password = 刚才的hash值
设置远程访问
命令行执行命令 ip 下跟本机的 ip 地址 我的是 192.168.43.127
jupyter lab --ip=192.168.43.127
第一次执行之后远程登录会提示需要 token
token 就是命令这里后面跟的(图片来自网络)
本地浏览器访问ip就可以远程访问 jupyter lab 了