# Jupyter Dash
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/plotly/jupyter-dash/master?urlpath=tree/notebooks/getting_started.ipynb)
This library makes it easy to develop Plotly Dash apps interactively from within Jupyter environments (e.g. classic Notebook, JupyterLab, Visual Studio Code notebooks, nteract, PyCharm notebooks, etc.).
![jupterlab example](https://user-images.githubusercontent.com/15064365/82324108-150d4200-99a7-11ea-8d22-5c1bb8acaadb.gif)
See the [notebooks/getting_started.ipynb](https://github.com/plotly/jupyter-dash/blob/master/notebooks/getting_started.ipynb) for more information and example usage.
# Installation
You can install the JupyterDash Python package using pip...
```
$ pip install jupyter-dash
```
or conda
```
$ conda install -c conda-forge -c plotly jupyter-dash
```
## JupyterLab support
When used in JupyterLab, JupyterDash depends on the [`jupyterlab-dash`](https://www.npmjs.com/package/jupyterlab-dash) JupyterLab extension, which requires JupyterLab version 2.0 or above.
This extension is included with the Python package, but in order to activate it JupyterLab must be rebuilt. JupyterLab should automatically produce a popup dialog asking for permission to rebuild, but the rebuild can also be performed manually from the command line using:
```
$ jupyter lab build
```
To check that the extension is installed properly, call `jupyter labextension list`.
## Colab support
As of version 0.3.0, `JupyterDash` works in Colab with no additional configuration. Just install `jupyter-dash` using pip in a Colab notebook cell
```
!pip install jupyter-dash
```
# Features
To learn more about the features of JupyterDash, check out the [announcement post](https://medium.com/plotly/introducing-jupyterdash-811f1f57c02e).
# Development
To develop JupyterDash, first create and activate a virtual environment using virtualenv or conda.
Then clone the repository and change directory to the repository root:
```
$ git clone https://github.com/plotly/jupyter-dash.git
$ cd jupyter-dash
```
Then install the dependencies:
```
$ pip install -r requirements.txt -r requirements-dev.txt
```
Then install the Python package in editable mode. Note: this will require [nodejs](https://nodejs.org/en/) to be installed.
```
$ pip install -e .
```
Then install the classic notebook extension in development mode:
```
$ jupyter nbextension install --sys-prefix --symlink --py jupyter_dash
$ jupyter nbextension enable --py jupyter_dash
```
Then install the JupyterLab extension in development mode:
```
$ jupyter labextension link extensions/jupyterlab
```
For release, build the JupyterLab extension to bundle with the Python package:
```
$ python setup.py build_js
```
没有合适的资源?快使用搜索试试~ 我知道了~
jupyter-dash:在Jupyter Notebook和JupyterLab中开发Dash应用程序
共32个文件
py:7个
json:5个
txt:4个
需积分: 50 0 下载量 149 浏览量
2021-02-03
04:59:35
上传
评论
收藏 52KB ZIP 举报
温馨提示
Jupyter Dash 该库使在Jupyter环境(例如经典Notebook,JupyterLab,Visual Studio Code笔记本,nteract,PyCharm笔记本等)中以交互方式开发Plotly Dash应用变得容易。 有关更多信息和示例用法,请参阅 。 安装 您可以使用pip安装JupyterDash Python软件包... $ pip install jupyter-dash 或conda $ conda install -c conda-forge -c plotly jupyter-dash JupyterLab支持 在JupyterLab中使用时,JupyterDash取决于 JupyterLab扩展,它需要JupyterLab 2.0或更高版本。 该扩展包含在Python软件包中,但是要激活它,必须重建JupyterLab。 JupyterLab应该会自动生成一个弹出对话框,要求您进行重建许可,但是也可以使用以下命令从命令行手动进行重建: $ jupyter lab build 要检查扩展程序是否正确安装,请致电jupyter labexte
资源详情
资源评论
资源推荐
收起资源包目录
jupyter-dash-master.zip (32个子文件)
jupyter-dash-master
setup.py 4KB
.gitignore 149B
conda.recipe
meta.yaml 769B
requirements.txt 57B
MANIFEST.in 262B
extensions
jupyterlab
style
index.css 100B
package.json 1KB
src
index.ts 4KB
tsconfig.json 386B
lib
index.js 4KB
index.d.ts 240B
.prettierrc 25B
yarn.lock 55KB
CHANGELOG.md 724B
LICENSE.txt 1KB
notebooks
getting_started.py 8KB
getting_started.ipynb 11KB
README.md 3KB
jupyter_dash
__init__.py 319B
jupyter_app.py 17KB
comms.py 3KB
labextension
package.json 1KB
dist
jupyterlab-dash-v0.4.0.tgz 3KB
nbextension
main.js 1KB
__init__.py 0B
jupyter_dash.json 61B
README.md 0B
description.yaml 172B
version.py 22B
renovate.json 41B
requirements-dev.txt 51B
binder
requirements.txt 86B
共 32 条
- 1
仆儿
- 粉丝: 16
- 资源: 4685
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0