Jupyter lab 配置远程访问
# 1. 安装 Jupyter lab pip install jupyterlab # 2. 生成默认配置文件 jupyter server --generate-config # 3. 设置秘钥 jupyter server password # 4. 在生成的配置文件 ~/.jupyter/jupyter_notebook_config.py 中添加如下配置: c.ServerApp.allow_remote_access = True c.ServerApp.ip = '*' c.ServerApp.open_browser = False c.ServerApp.port = 8080 c.ServerApp.root_dir = u'/' # 5. 启动 Jupyter lab jupyter-lab # 6. 通过 IP 地址接入 http://Server-ip:8080/lab
Jupyter lab 配置使用 conda 的虚拟环境
# 1. 激活想要使用的 conda 环境 conda activate env_name # 2. 在该虚拟环境下安装 ipykernel pip install ipykernel # 3. 在 jupyter 中添加环境 python -m ipykernel install --user --name env_name --display-name "name-want-to-dispaly"



