跳转到主要内容

JupyterLab的交互式小部件

项目描述

Jupyter Widgets JupyterLab 扩展

JupyterLab 3.0 扩展,用于Jupyter/IPython小部件。

安装

要启用JupyterLab 3.x中的ipywidgets支持

pip install jupyterlab_widgets

版本兼容性

在JupyterLab 3.0之前,使用以下列表中的相应命令安装兼容的JupyterLab扩展。

  • 对于JupyterLab 0.30,使用jupyter labextension install @jupyter-widgets/jupyterlab-manager@0.31
  • 对于JupyterLab 0.31rc1,使用jupyter labextension install @jupyter-widgets/jupyterlab-manager@0.32
  • 对于JupyterLab 0.31rc2,使用jupyter labextension install @jupyter-widgets/jupyterlab-manager@0.33
  • 对于JupyterLab 0.31.x,使用jupyter labextension install @jupyter-widgets/jupyterlab-manager@0.34
  • 对于JupyterLab 0.32.x,使用jupyter labextension install @jupyter-widgets/jupyterlab-manager@0.35
  • 对于JupyterLab 0.33.x,使用jupyter labextension install @jupyter-widgets/jupyterlab-manager@0.36
  • 对于JupyterLab 0.34.x,使用jupyter labextension install @jupyter-widgets/jupyterlab-manager@0.37
  • 对于JupyterLab 0.35.x,使用jupyter labextension install @jupyter-widgets/jupyterlab-manager@0.38
  • 对于JupyterLab 1.0.x和1.1.x,使用jupyter labextension install @jupyter-widgets/jupyterlab-manager@1.0
  • 对于JupyterLab 1.2.x,使用jupyter labextension install @jupyter-widgets/jupyterlab-manager@1.1
  • 对于JupyterLab 2.x,使用jupyter labextension install @jupyter-widgets/jupyterlab-manager@2

贡献

开发安装

注意:您需要Node.js来构建扩展包。

jlpm命令是JupyterLab安装的yarn的固定版本。您可以使用yarnnpm代替以下jlpm

# Clone the repo to your local environment
# Change directory to the jupyterlab_widgets directory
# Install package in development mode
pip install -e .
# Link your development version of the extension with JupyterLab
jupyter labextension develop . --overwrite
# Rebuild extension Typescript source after making changes
jlpm build

您可以在不同的终端中同时监视源目录并运行JupyterLab,以监视扩展源中的更改并自动重新构建扩展。

# Watch the source directory in one terminal, automatically rebuilding when needed
jlpm watch
# Run JupyterLab in another terminal
jupyter lab

在运行监视命令时,每个保存的更改将立即在本地构建并可用于正在运行的JupyterLab。刷新JupyterLab以在浏览器中加载更改(您可能需要等待几秒钟以重新构建扩展)。

卸载

pip uninstall jupyterlab_widgets

项目详情


发布历史 发布通知 | RSS源

下载文件

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

源分发

jupyterlab_widgets-3.0.13.tar.gz (203.6 kB 查看哈希值)

上传时间

构建分发

jupyterlab_widgets-3.0.13-py3-none-any.whl (214.4 kB 查看哈希值)

上传时间 Python 3

由以下支持

AWSAWS 云计算和安全赞助商 DatadogDatadog 监控 FastlyFastly CDN GoogleGoogle 下载分析 MicrosoftMicrosoft PSF赞助商 PingdomPingdom 监控 SentrySentry 错误日志 StatusPageStatusPage 状态页面