服务器启动 jupyter lab,并在本地浏览器免密登陆

pip install jupyterlab

方法一: 临时在服务器启动 jupyter lab,并在本地浏览器免密登陆

nohup jupyter lab --ServerApp.ip="*" --ServerApp.password="" --ServerApp.token="" --no-browser --allow-root --port 8888 >> /root/jupyter_lab.txt 2>&1 &

方法二: 永久修改jupyter lab配置文件,在服务器启动 jupyter lab,并在本地浏览器免密登陆

jupyter server --generate-config # or jupyter lab --generate-config
vim jupyter_server_config.py # vim jupyter_lab_config.py 

配置文件修改内容

c.ServerApp.allow_root=True
c.ServerApp.ip=‘*’
c.ServerApp.open_browser=False
c.ServerApp.password=‘’
c.ServerApp.token=‘’

shell 修改密码

jupyter server password
nohup jupyter lab --port 8888 >> /root/jupyter_lab.txt 2>&1 &

版权声明:本文为danerer原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。