D站

Jupyter文件管理部署

安装和部署

  1. pip install jupyterlab==4.4.9
  2. #生成配置文件
  3. jupyter lab --generate-config
  4. # 编辑配置文件
  5. vi /root/.jupyter/jupyter_lab_config.py
  6. #增加以下行
  7. c.ServerApp.ip = '0.0.0.0'
  8. c.ServerApp.port = 8888
  9. c.ServerApp.token = ''
  10. c.ServerApp.password = ''
  11. c.ServerApp.open_browser = False
  12. c.ServerApp.allow_root = True

Jupyter 运行

  1. #执行运行命令
  2. jupyter lab #默认里面起端口是8888
  3. 复制链接浏览器中打开