Dash by Plotly对于 Python 开发人员而言,这似乎是一种无需学习 Javascript 和前端 Web 开发即可创建交互式 Web 应用程序的好方法。另一个具有相似目标和范围的伟大项目是Jupyter Dashboards .
各有什么优缺点?
特别是在多用户部署中?我还发现 Plotly 文档非常不清楚究竟什么是开源以及数据是否上传到他们,或者绘图是否可以离线完成?底层 Plotly 库显然有两种模式,但 Dash 是在什么模式下运行的?
最佳答案
免责声明:我写了 Dash :)
我建议您尝试这两种方法。 Dash 大约需要 30 分钟才能通过 tutorial .
我也建议退房:
有一些 Dash 的高级特性(这些在 announcement letter 中有更详细的介绍)
callbacks”将交互式组件(下拉菜单、图表、 slider 、文本输入)与您自己的 Python 代码绑定(bind)。Graph 组件是交互式的,允许 Dash 应用程序作者编写响应悬停、单击或选择图表上的点的应用程序。I also found the Plotly documentation quite unclear on what exactly is Open Source and whether the data gets uploaded to them or if the plotting can be done offline?
听起来这是指 plotly.py图形库。这是一个独立于 Dash 的库。两个库都使用 MIT 许可的 plotly.js用于创建图表的库。 plotly.js 不会将任何数据发送到 plotly 服务器 - 它完全是客户端。
plotly.py 库包含将数据发送到您的在线 plotly 帐户以用于托管、共享和编辑图表的方法,但它完全是可选的。同样,plotly.py 是一个独立于 Dash 的库。 plotly.py 用于交互式绘图,Dash 用于创建交互式应用程序(可以包括图表)。
In particular in a multi-user deployment? There are clearly two modes for the underlying Plotly library but what mode does Dash operate in?
关于python - Dash by Plotly vs Jupyter Dashboards 的优缺点是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44967759/