4,557 questions
3
votes
2
answers
135
views
How to add a "Copy to Clipboard" button for a Dash DataTable in Python?
I'm building a Dash app in Python and trying to add a button that lets the user copy the table content to the clipboard so they can paste it into Excel.
The table displays correctly, but when I click ...
1
vote
0
answers
120
views
Plotly - add dropdown list or buttons to OHLC / Candlestick graph
I have the following dataframe:
lst = [['10/01/2025 8:30:00', 2.74, 2.87, 2.60, 2.65, 14, 'SPXW251001P06590000', 'P', 6590],
['10/01/2025 8:31:00', 2.80, 2.80, 2.50, 2.53, 61, '...
3
votes
1
answer
148
views
Plotly changes font size in 3D plot when updating via Dash
I am trying to create a 3D plot with plotly. In the plotting area, I want a grid of floating text annotations.
This is my MWE:
import plotly.graph_objs as go
import dash
from dash import html, dcc, ...
1
vote
1
answer
87
views
Why is Dash ignoring the HOST environment variable?
I have this minimal Dash app:
import os
import dash
from dash import html
app = dash.Dash(__name__)
app.layout = html.Div("Hello Dash!")
print(f'{os.environ["HOST"]=}')
app.run(...
2
votes
1
answer
132
views
Change property of GeoJSON by clicking on a Map using Dash and Leaflet
Currently my code looks like this:
import dash
from dash import Output, Input, State, html, no_update
import dash_leaflet as dl
import osmnx as ox
import json
from numpy import dtype
# Style-Funktion ...
2
votes
0
answers
58
views
Plotly dashboard logout after refreshing page
I'm trying to make a Dashboard with Login, Register and Dashboard with Navbar and Tabs. With below code everything working well but I have a problem that if I refreshed page, Dashboard will return to ...
1
vote
0
answers
54
views
Dash / Plotly: 3D camera resets on every update on mobile (Android/iOS)
I'm developping a Dash app with a 3D plot (dcc.Graph + plotly.graph_objs) that includes interactive features like cube overlays and filtering. The 3D scene works well on desktop — but on mobile (...
2
votes
0
answers
42
views
AG-Grid Custom sorting based on a list
I am trying to custom sort a grouped AG-Grid on the sport column based on a list SPORT_ORDER = [“Swimming”, “Gymnastics”, “Speed Skating”] but am unable to setup a comparator for it.
I am not sure if ...
2
votes
1
answer
222
views
Dash loading component: how to have spinner appear in the correct place on initial load
On initial load, the spinner is very high up on the page (I guess because no figure has been created yet). On subsequent loads (whenever a new option is selected from the dropdown), the spinner is in ...
0
votes
0
answers
87
views
How to change Mantine multiselect options-filtering in Python
I've developped a small dash app that allows user to plot several charts depending on dropdown inputs.
I first used bootstrap dropdowns, but it could not handle the large amount of options (~7000)
...
1
vote
1
answer
49
views
Dash Plotly X-Axis
I have a dash plot graph (see below link) that shows the "Inspection Date" on the x-axis and the "SCORE" on the y-axis. My goal is to be able to switch (with radio buttons) the y-...
2
votes
1
answer
154
views
How to add a dash component as a dash-leaflet custom control?
I'm slowly discovering the dash-leaflet interface coming from ipyleaflet widget lib and there are still some tasks that I don't manage to achieve.
Here I would like to add a dash componenent (in this ...
1
vote
0
answers
81
views
Dash / Plotly: 3D camera resets on every update on mobile (Android/iOS) despite uirevision="lock"
I'm building a Dash app with a 3D plot (dcc.Graph + plotly.graph_objs) that includes interactive features like cube overlays and filtering. The 3D scene works well on desktop — but on mobile (Android &...
2
votes
0
answers
64
views
How to Align Row and Column Labels of Plotly Subplot Grid in Python Dash Application
I'm trying to create a Dash application that displays a grid of subplots to visualize the pairwise comparison of the columns of a dataframe. To the top and left of each grid row and column will be the ...
0
votes
2
answers
92
views
Graph (histogram) is blank in Plotly Dash but displays correctly in Jupyter notebook
I am trying to create a Dash app but the graph I want to display is blank. It shows up exactly how I want it to in my Jupyter notebook, but it is blank in my Dash app.
Here is the code used in the ...
1
vote
1
answer
129
views
Python Dash AgGrid- Applying styling to blank cells?
I have a python dash app and am applying conditional formatting to cells depending on if their values are less than (green) or greater than (red) specified values. Some of my cells are blank and it is ...
1
vote
1
answer
147
views
How can I import a custom font into a Plotly figure from a TTF file (in a Google Colab notebook)?
I'm currently in the process of designing a data visualisation dashboard using the Dash library in Python, and I was trying to make the font of the dashboard slightly more interesting than the generic ...
1
vote
1
answer
41
views
Is there a way to save a dash app to an offline html file, while preserving all interactions (hover, checkbox filtering etc)?
I've tried javascript code, but I'm not familiar with JS and the filtering is not working properly. fig.write_html doesn't work because the checkboxes will not show up.
For context, I have 2 main ...
1
vote
0
answers
60
views
How can I store the value of a Dash slider component?
I am developing an MRI file viewer app using dash and plotly. The way it works is I can select a specific MRI file from my dataset and the app will generate a slider that could take you through the ...
0
votes
0
answers
121
views
Blank plot using plotly dash in jupyterlab (AWS Sagemaker)
When I run dash app using the code below in jupyterlab (AWS Sagemaker), the plot is blank.
from dash import Dash, html, dcc, Output, Input, callback
import plotly.express as px
import pandas as pd
...
1
vote
0
answers
110
views
Connect to delta table from a Dash Databricks App using Databricks Connect
I am building my first Dash app within Databricks Apps (Azure). I want to retrieve data from a delta table in the same account.
I have a cluster with a shared access mode and unrestricted policy which ...
0
votes
0
answers
77
views
Dash Error: "A Nonexistent Object Was Used in an Output of a Dash Callback" After Navigating Between Pages
am developing a Dash web application with a sidebar containing buttons that toggle different views (tables and analysis views). The app has multiple pages, including /analysis (where data is analyzed ...
1
vote
0
answers
55
views
How to replace data in Dash holoviews datashader graph during runtime within a callback?
I am trying to have a chart in my webapp that plots tens of millions of points. For this purpose I started out with Dash and to efficiently depict large datasets I used Holoviews combined with ...
1
vote
1
answer
213
views
dash app custom JS cannot find the dcc.Store for callback
I am creating a webapp that should provide the python code with a callback whenever user rightclicks in the webapp.
I tried to do this with a dcc.Store and to write to the store on a contextmenu event....
0
votes
0
answers
92
views
How to correclty implement getDataPath for Tree structures in Dash AG Grid (python)
I am trying to implement a data table that has a 'tree structure' such that the table is render with rows that have drop downs for additional rows (children). Below is a basic Dash app I have created ...