-
进入到jupyter的目录
cd .jupyter/ -
设置端口 并启动jupyter-lab
nohup jupyter-lab --port 8892 & -
查看jupyter
ps aux | grep jupyter
-
到本地jupyter终端运行
ssh -L 8892:localhost:8892 ubuntu02@服务器IP地址

- 安装 ipykernel
(1)进入base环境(notebooks终端环境)、虚拟环境(服务器python虚拟环境) 安装ipykernel:
python -m ipykernel install --user --name 虚拟环境名称
python -m ipykernel install --user --name layoutlmfts
(2)然后进入base环境启动jupyter-lab ,然后进入浏览器界面就可以选择对应的虚拟环境的kernel了
- 浏览器上启动
http://localhost:8892/lab
输入服务器密码即可
排错:
错误:

解决方案:
没有在终端启动notebooks-lab

本文介绍如何设置并启动Jupyter Lab服务,包括端口配置、远程访问及安装和使用ipykernel的方法。读者将学会通过命令行操作实现Jupyter Lab的部署,并能在不同的环境中切换内核。
2533

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



