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
1 answer

Updating dbc.Card with hoverData

I have the following skeleton code # ------------------------------ # IMPORT LIBRARIES # ------------------------------ # Import Dash and Dash Bootstrap Components import dash import dash_bootstrap_components as dbc from dash import Input,…
Jorge Gomes
  • 304
  • 2
  • 15
1
vote
1 answer

Specifying local Chromedriver path for Dash application testing with webdriver-manager

I am trying to leverage testing Dash application as described here: https://dash.plotly.com/testing However I found no way of specifying the Chromedriver path for the webdriver-manager under the hood of dash testing. I tried this below which calls…
Daniel
  • 11
  • 1
1
vote
1 answer

Update django model objects from editable dash data-table

I want to update my models by an editable plotly dash-table (populated by a dataframe, himself populated by sqlconnection with models) in Django but I don't know how to :/ You will see my trials in code comments, but obviously, it doesn't work. Any…
Thibault L
  • 15
  • 5
1
vote
0 answers

Python Dash app with excel-like feature to select column elements with dropdown

I am writing a dash app with following inputs like below:- So far I've written the code as below:- from dash import Dash, dcc, html, Input, Output, dash_table import dash from dash.dependencies import Input, Output, State import dash import pandas…
Biplab
  • 233
  • 4
  • 15
1
vote
2 answers

VSCode dash app.run_server(debug=True) not working - runs but says 'no module named ' and does not load

debug=True is not working in VSCode. When I try to run it, I get this error: > Dash is running on http://127.0.0.1:8050/ > > * Serving Flask app 'Test' (lazy loading) * Environment: production > WARNING: This is a development server. Do not use…
1
vote
1 answer

Docker - No such file or directory when running the image

FROM python:3.10 COPY requirements.txt . RUN pip install -r requirements.txt #Make a copy of the current directory COPY / ./ #Display list of files in directory RUN ls / ENTRYPOINT ["python", "/main.py"] So this is my current…
1
vote
0 answers

dash of python library shapash is not working

I have used Shapash library for visualization but the dash is not working. The code is running and also gave a dash link, which shows Dash is running on http://0.0.0.0:8050/ /opt/conda/lib/python3.7/site-packages/shapash/webapp/smart_app.py:307:…
Airah
  • 41
  • 4
1
vote
1 answer

How can I programatically delete files in another Docker container?

I am currently running a Dash (Flask) app in a Docker container that saves user data onto the filesystem within a folder called assets. In another container, I have a Python script called worker.py from where I want to delete a folder that is within…
marxfh
  • 11
  • 2
1
vote
1 answer

Is there a way to obtain the min and max of a dcc.Slider object without including them as Inputs in a callback?

Basically all the sliders are populated using dcc.Input. The program works where input boxes populate the min/max of the slider. The x-axis of the graph that will displayed is based on the last slider that is changed @app.callback( …
Pherdindy
  • 1,168
  • 7
  • 23
  • 52
1
vote
0 answers

how to update today's date in datepickerrange() in dashboard without re-running the python code?

I am using dcc.DatePickerRange() where I set end date to be today, if I share my dashboard with others and I don't re-run the python code, how do I update today's date? Thanks dcc.DatePickerRange(id='date-range', …
roudan
  • 3,082
  • 5
  • 31
  • 72
1
vote
3 answers

Run Flask/Dash App with VSCode Debugger not working

When I run my Dash app from the command line using export PYTHONPATH=./src/ && python ./src/pdv/app.py it runs properly, however, when I try to run it with the debugger (using the following configuration in my launch.json { "name":…
joshp
  • 706
  • 5
  • 22
1
vote
1 answer

how to automatically open a website when launching the dash?

I am using plotly-dash with jupyter dash. I am wondering if I can automatically open a website if Jupyter dash is run and launch the dashboad after app.run_server(mode='external',debug=True,port=8050). The reason is I have to log in a website to…
roudan
  • 3,082
  • 5
  • 31
  • 72
1
vote
1 answer

Pie chart with multiple dropdown options

I'm trying to make a pie chart with 3 options: Create graph for all item when don't select dropdown options Show each graph for each item selection. Create graph for multiple item options. It's the sum of item options. Below is my code: import…
hoa tran
  • 1,391
  • 1
  • 5
  • 14
1
vote
1 answer

Can a dash app be filtered via URL like Power BI

I am embarking on a POC to replace a Power BI dashboard that can’t do all the visualizations we need with a dash app. One major requirement is to be able to pass multiple filters to the app via url in a manner similar to the Power BI capability. I…
Chivon
  • 13
  • 2
1
vote
1 answer

Align Python Dash element under a specific Header

I am new to Python Dash and I am trying to create an app with few dropdowns. So far my app.layout looks like below:- app.layout = html.Div([ html.H1(children="Container Vulnerability Risk Rating Calculator",…
Biplab
  • 233
  • 4
  • 15