JupyterLab 远程访问配置与使用

1. 安装

#pip3 install jupyterlab

2.初始化并生成配置文件
#jupyter lab --generate-config

Writing default config to: /root/.jupyter/jupyter_lab_config.py


3.生成访问密码

[root@localhost .jupyter]# jupyter-lab password
Enter password: 
Verify password: 
[JupyterPasswordApp] Wrote hashed password to /root/.jupyter/jupyter_server_config.json


4. 修改配置文件
[root@localhost .jupyter]# vi jupyter_lab_config.py
c.ServerApp.ip = '10.27.9.11' # 设置IP地址
c.ServerApp.allow_remote_access = True
c.ServerApp.open_browser = False
c.ExtensionApp.open_browser = False
c.LabServerApp.open_browser = False
c.ServerApp.password = 'argon2:$argon2id$v=19$m=10240,t=10,p=8$C8QpwB53pxp6iQ47H3ht9A$6CqsPmdr0O82GXodKy5NptjVVS4y6ywb8pKCb3px2JY' #从/root/.jupyter/jupyter_lab_config.py取密码填写到这里

  5.访问

   http://10.27.9.11:8888/lab/

JupyterLab 远程访问配置与使用_第1张图片JupyterLab 远程访问配置与使用_第2张图片

你可能感兴趣的:(Linux,java,服务器,前端)