JupyterLab 官网:
https://jupyterlab.readthedocs.io
pip 安装:
生成配置文件:
1 2
| jupyter lab --generate-config
|
生成密码:
修改配置:
jupyter_lab_config.py中添加
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| c.LabApp.ip='*'
c.LabApp.port =8888
c.LabApp.password = 'argon2:xxxxxxxxxxxxxx'
c.LabApp.open_browser = False
c.LabApp.notebook_dir = '/home/xxx/jupyter_work'
c.LabApp.allow_remote_access = True
c.LabApp.allow_root = True
|
安装插件:
1 2 3 4
| pip install jupyterlab-language-pack-zh-CN
|
启动:
停止:
1.网页面板中点击 File->Shut Down
2.shell 命令
1 2 3 4
| ps -ef|grep jupyter
kill -quit 进程ID
|
注意:
pip安装可能会有环境变量问题找不到jupyter lab
添加环境变量:
sudo vim ~/.bashrc
export PATH="$HOME/.local/bin:$PATH"
source ~/.bashrc