服务器配置 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=''
相关推荐
陶然同学1 小时前
【Linux及Shell】VMware&Ubuntu&Xshell安装
linux·运维·xshell8·xftp8
小乐笙1 小时前
笔记:纯真 IP 库使用
运维·网络·tcp/ip
咖喱o1 小时前
DHCP
linux·运维·服务器·网络
IMPYLH2 小时前
Linux 的 touch 命令
linux·运维·服务器·bash
uestcwhc2 小时前
服务器定时发送邮件设置
运维·服务器
雷工笔记2 小时前
MES 系统设备管理模块详细设计方案
大数据·运维·网络
wangchunting2 小时前
VMware17 使用Rocky Linux 9.7系统
linux·运维·服务器
我不是立达刘宁宇3 小时前
基础文件操作
运维
青梅橘子皮3 小时前
Linux---权限
linux·运维·服务器
Jul1en_3 小时前
Claude 迁移 Codex 工作流迁移与更新
java·服务器·前端·后端·ai编程