我想使用jupyterlab-nvdashboard从 JupyterLab 监控 GPU 性能。虽然 github 中没有提到它,但我发现 conda-forge 频道中也提供了该扩展,我从那里安装了它。
conda install -c conda-forge jupyterlab-nvdashboard
安装没有错误,最后一个环境列表条目显示 jupyterlab-nvdashboard-0.6.0 与依赖项 pynvml-11.0.0 一起安装:
2021-10-21 12:15:21 (rev 8)
+jupyterlab-nvdashboard-0.6.0 (conda-forge/noarch)
+pynvml-11.0.0 (conda-forge/noarch)
我正在运行最新版本的 jupyter-lab >= 3.0
$ jupyter --version
Selected Jupyter core packages...
IPython : 7.28.0
ipykernel : 6.4.1
ipywidgets : not installed
jupyter_client : 7.0.6
jupyter_core : 4.8.1
jupyter_server : 1.11.1
jupyterlab : 3.1.18
这是我在尝试安装 labextension 时遇到的错误。
$ jupyter labextension install jupyterlab-nvdashboard
An error occurred.
ValueError: The extension "jupyterlab-nvdashboard" does not yet support the current version of JupyterLab.
Conflicting Dependencies:
JupyterLab Extension Package
>=3.1.17 <3.2.0 >=2.0.0 <3.0.0 @jupyterlab/application
>=3.1.17 <3.2.0 >=2.0.0 <3.0.0 @jupyterlab/apputils
>=5.1.17 <5.2.0 >=4.0.0 <5.0.0 @jupyterlab/coreutils
>=17.0.1 <18.0.0 >=16.4.2 <17.0.0 react
>=17.0.1 <18.0.0 >=16.9.0 <17.0.0 react-dom
这是服务器扩展列表命令的输出:
$ jupyter server extension list
Config dir: /home/<username>/.jupyter
Config dir: /home/<username>/anaconda3/envs/test/etc/jupyter
dask_labextension enabled
- Validating dask_labextension...
dask_labextension 5.1.0 OK
jupyter_server_proxy enabled
- Validating jupyter_server_proxy...
jupyter_server_proxy OK
jupyterlab enabled
- Validating jupyterlab...
jupyterlab 3.1.18 OK
jupyterlab_nvdashboard enabled
- Validating jupyterlab_nvdashboard...
X validation failed