跳转到主要内容

一个JupyterLab扩展,用于渲染Plotly Dash应用程序

项目描述

jupyterlab-dash

Binder

一个JupyterLab扩展,用于在JupyterLab中作为独立窗口渲染Plotly Dash应用程序 :tada

JupyterLab and Dash Demo Video

注意: 此扩展目前不支持Windows或Python 2

先决条件

  • JupyterLab 1.0.0
  • Dash

安装

jupyterlab-dash库需要Python包和JupyterLab扩展。

首先,使用pip安装Python包...

$ pip install "jupyterlab>=1.0" jupyterlab-dash==0.1.0a3

或conda(但不能同时使用!)。

$ conda install -c plotly -c defaults -c conda-forge "jupyterlab>=1.0" jupyterlab-dash=0.1.0a3

然后,安装JupyterLab扩展。node的v6.17.1版本可用,node 8.x.x或10+也应可用。

$ jupyter labextension install jupyterlab-dash@0.1.0-alpha.3

开发安装

如果您想为开发安装jupyterlab-dash

$ git clone https://github.com/plotly/jupyterlab-dash
$ cd jupyterlab-dash

# Install Python package
$ pip install -e .

# Install Javascript dependencies
$ npm install # or yarn

# Build JupyterLab extension
$ npm run build # or yarn build
$ jupyter labextension link .

要重新构建JupyterLab扩展

$ npm run build
$ jupyter lab build

要随着源代码的变化自动重新构建JupyterLab扩展

# In one terminal tab, watch the jupyterlab-dash directory
$ npm run watch # or yarn watch

# In another terminal tab, run jupyterlab with the watch flag
$ jupyter lab --watch

用法

import jupyterlab_dash
import dash
import dash_html_components as html

viewer = jupyterlab_dash.AppViewer()

app = dash.Dash(__name__)

app.layout = html.Div('Hello World')

viewer.show(app)

项目详情


下载文件

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

源代码分发

jupyterlab-dash-0.1.0a3.tar.gz (5.7 kB 查看哈希值)

上传时间 源代码

构建分发

jupyterlab_dash-0.1.0a3-py3-none-any.whl (5.1 kB 查看哈希值)

上传时间 Python 3

支持者