本文介绍本地远程使用服务器的 jupyter lab,涉及以下内容:
- 安装 jupyter lab
- 配置 jupyter lab
- 服务器上运行 jupyter lab
- 本地连接 jupyter lab
1. 安装
$ conda install -c conda-forge jupyterlab
2. 配置
2.1 生成密文
ipython
输入以下命令,设置密码(为了方便记忆,将其设置与登录服务器的账户密码相同)
from notebook.auth import passwd
passwd()
输入密码后,生成一段密文(红框中),复制下来,exit() 退出编译环境。