Github项目推荐 | jupyterlab-dash:JupyterLab中Dash应用程序交互式开发的扩展程序

2019 年 4 月 9 日 AI研习社


jupyterlab-dash

这是一个JupyterLab扩展,用于将Plotly Dash应用程序渲染为JupyterLab中的单独窗口 🎉

Github项目链接:

https://github.com/plotly/jupyterlab-dash

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

安装前准备内容

  • JupyterLab

安装

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

首先,使用pip安装Python包:

$ pip install jupyterlab-dash==0.1.0a2

或者用conda安装(但不是两个都用)。

$ conda install -c plotly jupyterlab-dash=0.1.0a2

然后安装JupyterLab 扩展:

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

开发安装

如果您想安装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_dashimport dashimport dash_html_components as html
viewer = jupyterlab_dash.AppViewer()
app = dash.Dash(__name__)
app.layout = html.Div('Hello World')
viewer.show(app)



点击阅读原文,查看本文更多内容

登录查看更多
3

相关内容

GitHub.com 使用 Git 作为版本控制系统(version control system)提供在线源码托管的服务,同时是个有社交功能的开发者社区。 国外类似服务: Bitbucket.com
Gitlab.com
国内类似服务:
Coding.net
【2020新书】实战R语言4,323页pdf
专知会员服务
102+阅读 · 2020年7月1日
【实用书】Python技术手册,第三版767页pdf
专知会员服务
239+阅读 · 2020年5月21日
【实用书】Python爬虫Web抓取数据,第二版,306页pdf
专知会员服务
122+阅读 · 2020年5月10日
【2020新书】数据科学:十大Python项目,247页pdf
专知会员服务
216+阅读 · 2020年2月21日
【GitHub实战】Pytorch实现的小样本逼真的视频到视频转换
专知会员服务
36+阅读 · 2019年12月15日
【电子书】Flutter实战305页PDF免费下载
专知会员服务
23+阅读 · 2019年11月7日
Keras作者François Chollet推荐的开源图像搜索引擎项目Sis
专知会员服务
30+阅读 · 2019年10月17日
用Now轻松部署无服务器Node应用程序
前端之巅
16+阅读 · 2019年6月19日
Github项目推荐 | Pytorch TVM 扩展
AI研习社
11+阅读 · 2019年5月5日
Github项目推荐 | pikepdf - Python的PDF读写库
AI研习社
9+阅读 · 2019年3月29日
Github项目推荐 | gensim - Python中的主题建模
AI研习社
15+阅读 · 2019年3月16日
Python | Jupyter导出PDF,自定义脚本告别G安装包
程序人生
7+阅读 · 2018年7月17日
推荐|Google最热门31款开源项目资源
全球人工智能
4+阅读 · 2017年11月24日
Embedding Logical Queries on Knowledge Graphs
Arxiv
3+阅读 · 2019年2月19日
Arxiv
7+阅读 · 2018年6月8日
Arxiv
4+阅读 · 2018年4月30日
Arxiv
4+阅读 · 2018年4月29日
Arxiv
4+阅读 · 2018年4月17日
Arxiv
13+阅读 · 2018年1月11日
VIP会员
相关VIP内容
【2020新书】实战R语言4,323页pdf
专知会员服务
102+阅读 · 2020年7月1日
【实用书】Python技术手册,第三版767页pdf
专知会员服务
239+阅读 · 2020年5月21日
【实用书】Python爬虫Web抓取数据,第二版,306页pdf
专知会员服务
122+阅读 · 2020年5月10日
【2020新书】数据科学:十大Python项目,247页pdf
专知会员服务
216+阅读 · 2020年2月21日
【GitHub实战】Pytorch实现的小样本逼真的视频到视频转换
专知会员服务
36+阅读 · 2019年12月15日
【电子书】Flutter实战305页PDF免费下载
专知会员服务
23+阅读 · 2019年11月7日
Keras作者François Chollet推荐的开源图像搜索引擎项目Sis
专知会员服务
30+阅读 · 2019年10月17日
相关资讯
用Now轻松部署无服务器Node应用程序
前端之巅
16+阅读 · 2019年6月19日
Github项目推荐 | Pytorch TVM 扩展
AI研习社
11+阅读 · 2019年5月5日
Github项目推荐 | pikepdf - Python的PDF读写库
AI研习社
9+阅读 · 2019年3月29日
Github项目推荐 | gensim - Python中的主题建模
AI研习社
15+阅读 · 2019年3月16日
Python | Jupyter导出PDF,自定义脚本告别G安装包
程序人生
7+阅读 · 2018年7月17日
推荐|Google最热门31款开源项目资源
全球人工智能
4+阅读 · 2017年11月24日
相关论文
Embedding Logical Queries on Knowledge Graphs
Arxiv
3+阅读 · 2019年2月19日
Arxiv
7+阅读 · 2018年6月8日
Arxiv
4+阅读 · 2018年4月30日
Arxiv
4+阅读 · 2018年4月29日
Arxiv
4+阅读 · 2018年4月17日
Arxiv
13+阅读 · 2018年1月11日
Top
微信扫码咨询专知VIP会员