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

一、背景

快速搭建一个jupyter lab 不用每次用ssh登录输入密码

二、步骤

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

两句命令解决

复制代码
pip install jupyterlab

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

方法2: 永久修改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=''
相关推荐
码农101号29 分钟前
Linux中shell编程表达式和数组讲解
linux·运维·服务器
powerfulzyh42 分钟前
非Root用户启动SSH服务经验小结
运维·ssh
云道轩1 小时前
升级centos 7.9内核到 5.4.x
linux·运维·centos
是小满满满满吗1 小时前
传输层:udp与tcp协议
linux·服务器·网络
爱学习的小道长1 小时前
Ubuntu Cursor升级成v1.0
linux·运维·ubuntu
EelBarb1 小时前
seafile:ubuntu搭建社区版seafile12.0
linux·运维·ubuntu
402 Payment Required1 小时前
serv00 ssh登录保活脚本-邮件通知版
运维·chrome·ssh
小柏ぁ2 小时前
calico/node is not ready: BIRD is not ready: BGP not established with xxx
运维·docker·kubernetes
Mintimate2 小时前
云服务器 Linux 手动 DD 安装第三方 Linux 发行版:原理与实战
linux·运维·服务器
RussellFans2 小时前
Linux 环境配置
linux·运维·服务器