创建新的笔记本实例(VM 类型:Pytorch 1.4)后,打开时出现与 Git 服务器扩展相关的内部错误:
Internal Error:
Fail to get the server root path. Error: Git server extension is unavailable. Please ensure you have installed the JupyterLab Git server extension by running: pip install --upgrade jupyterlab-git. To confirm that the server extension is installed, run: jupyter serverextension list.
这意味着我不能使用返回的 Git 克隆按钮:
Clone failed:
JSON.parse: unexpected character at line 1 column 1 of the JSON data
当我尝试命令jupyter serverextension list时,我发现 git 扩展被禁用。
jupyterlab_git disabled
- Validating...
jupyterlab_git 0.10.1 OK
我按照建议尝试了'jupyter serverextension enable --py jupyterlab_git --sys-prefix'和'pip install --upgrade jupyterlab-git',但这似乎没有解决任何问题。以下是我的笔记本实例设置(如果未指定,则为默认设置):
Region: us-west1 (Oregon)
Zone: us-west1-a
Environment: PyTorch 1.4 (with Intel® MKL-DNN/MKL and CUDA 10.1)
Machine type: n1-standard-4 (4vCPUs, 15 GB RAM)
GPU type: NVIDIA Tesla T4
Number of GPUs: 1
✓ Install NVIDA GPU driver automatically for me
这是否发生在其他人身上?我看到了 TensorFlow VM 的类似帖子(无法解决“错误:Git 服务器扩展不可用。”(谷歌笔记本))并且想知道它是否是相同的场景?