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 &

本文介绍两种在服务器上远程免密码启动JupyterLab的方法:一是临时启动并配置;二是通过修改配置文件实现永久设置。包括允许root用户访问、开放所有IP地址、关闭浏览器自动打开、移除登录密码及令牌。
1122

被折叠的 条评论
为什么被折叠?



