Questions tagged [plotly-dash]

Dash is a framework for building data visualisation web applications. The original release was for Python, but Julia and R versions of the framework are also now available.

Dash is written on top of Plotly.js and React.js, and its Python implementation uses Flask on the backend.

Extensive documentation and a gallery of examples are available.

Dash is an open source library, released under the MIT license.

Enter image description here

Enter image description here

Enter image description here

4538 questions
1
vote
0 answers

Dash callback function seems to have more inputs than possible

I was doing IBM's data sci cert and I encountered a dash callback function that has two inputs, but the function itself has 7 inputs. How is this possible? The function is posted below. @ app.callback( [Output(component_id='plot1',…
1
vote
1 answer

geoscatter plot on plotly with a shape file

I need to plot Italy's map with points on it, using plotly and dash libraries. Actually, I've done that using go.scattergeo. But it does not show the borders of provinces. (Generally the quality of map is less than shape file that I have) I also…
Sina Kian
  • 9
  • 2
1
vote
2 answers

Plotly in Django should I use Dash?

I am a reasonably experienced amateur python coder. With this site's help I have fought my way through, celery, channels, websockets, NGINX, docker etc etc to produce a website which controls my astronomy dome and some house automation. Part of the…
SgtBilko
  • 55
  • 2
  • 9
1
vote
0 answers

Dash unselect datatable cell when closing dbc.modal

I am actually working on a dash project. In this one, I have a datatable which is updated each 5 seconds. When I click on a cell of the datatable (= when active_cell is not None), the is_open parameter of my modal is set to true and values depending…
Ces
  • 76
  • 1
  • 7
1
vote
1 answer

dash app not working when deployed in AWS ECS

I deployed a dash app in aws ecs. Everything works fine and the task seems to be running. However when i try to use the public or private ip on the port that the app is running (10000), it is not working. Any idea why it could be happening? My…
1
vote
1 answer

Clicking download button downloads table AND opens a new tab

I want to be able to download a DataTable as a .csv from my Dash app using a button click. If possible I don't want to use the export_format option in the DataTable. Using the code below, clicking the button downloads the table and opens the app in…
desertBorn
  • 31
  • 4
1
vote
1 answer

How to use other people's react components in my dash app?

I would like to include a 5-star user editable rating in my dash app, similar to what's asked in this thread which leads to this github page where someone seem to have built it. However, I am not sure how to leverage the work that person has done.…
Mth Clv
  • 625
  • 1
  • 7
  • 20
1
vote
0 answers

Dash Figure not JSON Serialiable

I'm trying to update a histogram in Dash through a list of filters by setting the figure property as an output, but it's not updating and instead giving an error that the returned Figure object is not JSON serializable. I've tried several different…
John James
  • 219
  • 1
  • 8
1
vote
1 answer

ZeroMQ and Dash on linux cause "Address already in use" error\

Puzzled by this error message as nothing is running on the port for Dash (I run sudo netstat -nlp to make sure) and the ZMQ is working, on it’s own, perfectly as is the Dash functionality. Put them together, which doesn’t seem unreasonable, and they…
sio2bagger
  • 119
  • 2
  • 3
  • 10
1
vote
1 answer

How to switch between multiple tabs with buttons in Dash and also how to reset a button after click once?

I am looking to find a way to switch between multiple tabs by clicking buttons present inside the tabs. I am unable to find a way to reset a button after it is click once so the app won't fail if someone clicks the button multiple times. import…
praveen_s
  • 13
  • 4
1
vote
1 answer

Update several plots with slider in Python Dash

I am rather new to Dash (and basic skill level regarding Python) and working on a dashboard for educational purposes. Students shall be able to alter various variables via sliders. The changes on an economic model shall be visible in several plots…
Ralle Kalle
  • 123
  • 4
1
vote
1 answer

Plotly Dash: Place title above each dropdown menu

For some reason, the code is not doing what is suppose to do, where ideally I want the title, dropdown, and the plot side by side, but currently its stacked against each other. This is the code that vestland provided (thank you again!) for the app…
wew044
  • 49
  • 6
1
vote
1 answer

How to change the node sizes individually in a networkx graph in Plotly Dash

I am creating a networkx graph and while developing in Python I can change the node size using the following code in networkx.draw_shell() - vertices = df_final.columns.values.tolist() edges = [((u,v),df_final[u].corr(df_final[v])) for u,v in…
Sky_7
  • 77
  • 1
  • 10
1
vote
1 answer

How to avoid 'ID Not Found in Layout' with initial loading of app?

The below code functions correctly. The problem is that upon the initial loading of the app, the ID of the datatable cannot be found. I believe this is because it has not yet been created. How do I avoid this errror? from dash import dash,…
ah2Bwise
  • 82
  • 2
  • 17
1
vote
0 answers

Python Dash Plotly > Delete previous point data

I am trying to create a live updating graph with Plotly Dash with Python. Is there any way to delete the previous (first data input) data point and only plot the incoming one? This is my code: import pandas as pd import dash import…
Laura Rosu
  • 11
  • 1