jupyter lab
************
1、生成jupyter lab 配置文件,默认配置文件所在地址:/root/.jupyter/jupyter_lab_config.py
shell命令:jupyter lab --generate-config
2、生成密码
shell命令:jupyter server password
Enter password:
Verify password:
[JupyterPasswordApp] Wrote hashed password to /root/.jupyter/jupyter_server_config.json
复制jupyter_server_config.json文件中的password如下图:
3、修改配置文件/root/.jupyter/jupyter_lab_config.py,添加如下几行内容,将第2步的密码复制到c.NotebookApp.password中。
c.NotebookApp.ip='*'
c.NotebookApp.password = u''
c.NotebookApp.open_browser = False
c.NotebookApp.port =8878
4、指定jupyter lab自定义工作目录
c.NotebookApp.notebook_dir = 'home/123'