Skip to main content

JupyterLab 服务器扩展

项目描述

jupyterlab-primehub

PrimeHub 的 Jupyterlab 扩展

要求

  • JupyterLab >= 2.2.5

安装

jupyter labextension install @infuseai/jupyterlab-primehub
pip install jupyterlab_primehub
jupyter serverextension enable jupyterlab_primehub

卸载

jupyter labextension uninstall @infuseai/jupyterlab-primehub
jupyter serverextension disable jupyterlab_primehub
pip uninstall jupyterlab_primehub

构建 Docker 镜像

码头工人文件示例:

FROM jupyter/base-notebook
ARG PRIMEHUB_EXTENSION_VERSION="0.1.4"
USER $NB_UID
RUN pip install --no-cache-dir jupyterlab_primehub~=$PRIMEHUB_EXTENSION_VERSION && \
    jupyter serverextension enable jupyterlab_primehub && \
    jupyter labextension install @infuseai/jupyterlab-primehub@~v$PRIMEHUB_EXTENSION_VERSION && \
    jupyter-lab build

故障排除

  • 如果 JupyterLab < 2.2.5,您可能会看到以下错误:

    ValueError: No version of @infuseai/jupyterlab-primehub could be found that is compatible with the current version of JupyterLab. However, it seems to support a new version of JupyterLab. Consider upgrading JupyterLab.
    
    Conflicting Dependencies:
    JupyterLab              Extension      Package
    >=2.1.2 <2.2.0          >=2.2.5 <3.0.0 @jupyterlab/application
    >=2.1.1 <2.2.0          >=2.2.5 <3.0.0 @jupyterlab/apputils
    >=2.1.2 <2.2.0          >=2.2.5 <3.0.0 @jupyterlab/notebook
    >=5.1.0 <5.2.0          >=5.2.4 <6.0.0 @jupyterlab/services
    
  • 如果jupyter-client版本太旧,您可能会看到以下错误:

    from jupyter_client import AsyncKernelManager
    ImportError: cannot import name ‘AsyncKernelManager’
    
  • 如果ipykernel版本太旧,您可能会看到以下错误:

    AttributeError: 'AsyncKernelManager' object has no attribute ‘cleanup_resources'
    

贡献

请检查开发。

项目详情


下载文件

下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。

源分布

jupyterlab_primehub-0.1.4.tar.gz (21.5 kB 查看哈希)

已上传 source

内置分布

jupyterlab_primehub-0.1.4-py3-none-any.whl (28.8 kB 查看哈希)

已上传 py3