一个JupyterLab扩展,用于渲染Plotly Dash应用程序
项目描述
jupyterlab-dash
一个JupyterLab扩展,用于在JupyterLab中作为独立窗口渲染Plotly Dash应用程序 :tada
注意: 此扩展目前不支持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的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 70f2835833759bea6d5ee94e7b72f8cd5978875dd795bc3b372578d6a235c02c |
|
MD5 | c6a4a78483df86634cfba4e2bbfe5d03 |
|
BLAKE2b-256 | 3775c7a7461b31aff135fbd07ac1769dfa88d00f4614691ed362b34da2601d7e |
关闭
jupyterlab_dash-0.1.0a3-py3-none-any.whl的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 7ef29a7f940fd2421b02ecaf9a09c74e8314ade5363a71c5ca34f344447555ed |
|
MD5 | a318183ccaa904ce20348d92e12ae519 |
|
BLAKE2b-256 | 931697608d312dd85170c140e17b304433919cbd5635f86c8d533cb015e9c240 |