问题标签 [plotly-dash]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
6155 浏览

plotly - 如何组织一个有计划的冲刺项目?

我想弄清楚如何用多个应用程序组织一个破折号项目。所有示例都是单页应用程序,我希望将多个破折号组织为一个项目,由 gunicorn 运行(在 docker 容器内):

这是正确的方法吗?里面应该有什么,run.py或者run.sh,如果有的话?如何使用 gunicorn 服务多个应用程序?

0 投票
2 回答
7209 浏览

python - plot.ly(dash_core_components) 滑块颜色变化

我昨天第一次遇到了 plot.ly dash 并创建了一些交互式情节。我添加了dash_core_components.Slider()如下代码的对象。

我已阅读help(dcc.Slider),但找不到更改下方滑块的天蓝色的方法。

在此处输入图像描述

所以我的问题在这里......是否可以更改 plot.ly dash 的默认滑块的颜色(或样式)?先感谢您。

0 投票
2 回答
39536 浏览

python - Dash by Plotly vs Jupyter Dashboards 的优缺点是什么?

Dash by Plotly看起来是 Python 开发人员无需学习 Javascript 和前端 Web 开发即可创建交互式 Web 应用程序的好方法。另一个具有类似目标和范围的伟大项目是Jupyter Dashboards

各自的优缺点是什么?

特别是在多用户部署中?我还发现 Plotly 文档非常不清楚究竟什么是开源以及数据是否上传到他们,或者绘图是否可以离线完成?底层 Plotly 库显然有两种模式,但 Dash 以什么模式运行?

0 投票
2 回答
6938 浏览

python-3.x - Python Plotly 的 Dash:如何关闭在端口上运行的 Web 应用程序或对其进行更改?CTRL+C 似乎不起作用

我正在使用 Plotly 的 Dash 并尝试运行他们在此处提供的示例应用程序代码:https ://plot.ly/dash/getting-started#dash-app-layout

端口有问题。正在运行的代码在控制台中显示了这一点:控制台图像

但是,即使对代码进行了更改,Web 应用程序中的输出也没有显示任何更改。

基本上,当我实现不同的代码时:Web 应用程序继续显示上一次运行的输出!

CTRL+C 似乎没有帮助,也没有真正退出或导致应用程序发生任何变化。请让我知道有什么帮助。

我使用新端口(8049)运行了新代码,它有效,但没有解决最初的基本问题!

0 投票
2 回答
6217 浏览

plotly - 在 plotly Dash 中隐藏模式栏

在我们的 Dash 图表中,我们试图隐藏浮动工具栏,它允许用户缩放、平移、保存、捕获等。为了实现这一点,我知道在 plotly 中您可以将displayModeBar参数设置为 false。如何在 Dash 中做到这一点?

0 投票
1 回答
883 浏览

python - 水平箱线图,一行中有多个框,带有 plotly

我是 plotly 的新手,这是我第一次尝试以交互方式可视化数据。现在我遇到了一个概念问题。我想用 plotly 绘制水平方框图,我正在关注这个关于水平方框图的教程,但是结构中的数据如下:

您只能连续绘制一个连续框。我想要实现的是: 想要的情节 我有一个动作列表,我想绘制它们以显示在一天中的什么时间执行了哪些动作以及它们持续了多长时间。有些动作一天会执行多次,因此我需要一种方法来可视化它。你知道这是否可以通过情节来实现?

如果您想对我的问题投反对票,请对您这样做的原因提出建设性的批评。

0 投票
1 回答
4759 浏览

python - 如何在下拉更新后删除绘图破折号中的撤消按钮

在 Plotly Dash 中更新下拉框后,屏幕左下方会出现一个撤消按钮,并且不会消失。

如何删除它?

0 投票
1 回答
2433 浏览

python - How to incorporate a "play" button into a Dash by Plot.ly dashboard using python?

I currently have a dashboard with a scattermapbox map that plots the movement of people across a network, and uses several callbacks to update graphs based on hoverdata, etc. The mapbox graph uses a slider (dcc.Slider) to adjust the timestep that is currently showing. I want to add a "play" button that automates the process of clicking through the different timesteps on the slider.

I had success with the same dataset and parameters creating a play button in Plotly, because there are no callbacks and the sliders are an element in the layout dictionary for the figure. However, I am unsure where to place the callback for the buttons in Dash and unsure if it should use the animate method or the relayout method.

Currently I have just created a frame for each timestep (separate from the traces encompassed in data).

0 投票
5 回答
58214 浏览

python - 如何在 Jupyter notebook 或 JupyterLab 中使用破折号?

是否可以在 Jupyter Notebook 中使用 dash 应用程序,而不是在浏览器中提供和查看?

我的目的是在 Jupyter 笔记本中链接图表,以便将鼠标悬停在一个图表上生成另一个图表所需的输入。

0 投票
1 回答
1001 浏览

python - 从 PyCharm 访问 Dash 的文档

我正在使用 PyCharm 作为我的 IDE 使用 Plotly 的 Dash 库。由于我通常不熟悉 API 和 html,因此我经常help在集成 python 控制台中调用该命令的文档,因为 PyCharm 的文档快捷方式(Ctrl + Q在我的情况下)不适用于dash_core_componentsand dash_html_components.

我想知道是否有一种不那么繁琐的方式来访问文档,我试图为帮助命令分配一个快捷键但没有成功