如何为 GCP AI Platform Notebook 更新 Jupyter Lab 版本

kaw*_*vin 7 google-cloud-platform jupyter-lab gcp-ai-platform-notebook

我前段时间创建了一个 GCP AI Platform Notebook 实例,对于我尝试安装的许多扩展,版本似乎太低了。我做了一个pip install upgrade jupyterlab并重新启动了虚拟机实例。当我点击 时OPEN JUPYTERLAB,我发现更新没有生效。

这样做的正确方法是什么?

gri*_*tis 1

1 检查如何jupyter设置

  • 安装
conda list | grep jupyter
Run Code Online (Sandbox Code Playgroud)
  • 配置文件
jupyter --paths
Run Code Online (Sandbox Code Playgroud)

2 停止 jupyter 服务器(截至 2022 年...)

sudo service jupyter stop
Run Code Online (Sandbox Code Playgroud)

3更新jupyter

使用安装它的安装工具(conda或者pip可能conda

4 启动jupyter

sudo service jupyter start
Run Code Online (Sandbox Code Playgroud)

5 检查其状态

sudo service jupyter status
Run Code Online (Sandbox Code Playgroud)

笔记

您可能需要编辑一两个配置文件才能使 jupyter 服务器正常工作。截至 2022 年,vertex AI 虚拟机通过 linux 运行 jupyter service。检查sudo service jupyter status虚拟机如何启动 jupyter 服务器。我懂了/opt/conda/bin/python3.7 /opt/conda/bin/jupyter-lab --config=/home/jupyter/.jupyter/jupyter_notebook_config.py。根据您在 中看到的内容status,您可能需要编辑该文件或其他内容(例如,在 中显示的文件之一中jupyter --paths)。

来源:Vertex AI Workbench 故障排除