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
72
votes
5 answers

Running a Dash app within a Flask app

I have an existing Flask app, and I want to have a route to another app. More concretely, the second app is a Plotly Dash app. How can I run my Dash app within my existing Flask app? @app.route('/plotly_dashboard') def render_dashboard(): # go…
zthomas.nc
  • 3,689
  • 8
  • 35
  • 49
55
votes
2 answers

What are the pros and cons of Dash by Plotly vs Jupyter Dashboards?

Dash by Plotly looks like a great way for a Python developer to create interactive web apps without having to learn Javascript and Front End Web development. Another great project with similar aims and scope is Jupyter Dashboards. What are the pros…
snth
  • 5,194
  • 4
  • 39
  • 48
47
votes
5 answers

How to use dash within Jupyter notebook or JupyterLab?

Is it possible to have a dash app within a Jupyter Notebook, rather than served up and viewed in a browser? My intention is to link graphs within a Jupyter notebook so that hovering over one graph generates the input required for another graph.
bluprince13
  • 4,607
  • 12
  • 44
  • 91
38
votes
4 answers

AppEngine warning - OpenBLAS WARNING - could not determine the L2 cache size on this system

I try to deploy application on the GC AppEngine. There are no errors during deploy process but application doesn't work (Just show loading page). The only one strange raw in logs OpenBLAS WARNING - could not determine the L2 cache size on this…
Pizza eu
  • 1,419
  • 1
  • 14
  • 27
35
votes
2 answers

Plotly/Dash display real time data in smooth animation

We are trying to produce a real-time dashboard in plotly-dash that displays live data as it is produced. We are generally following the guidance here (https://dash.plotly.com/live-updates). We have a callback that gathers a chunk of new data points…
David Parks
  • 30,789
  • 47
  • 185
  • 328
32
votes
5 answers

How can I change the size of my Dash Graph?

I'm running into layout difficulties with the plots on Dash. All the plots I generate with Dash seem to be auto sized to be very narrow, which makes it hard to actually view the data without some creative zooming. As an example, when I view the…
FelixVelariusBos
  • 435
  • 1
  • 5
  • 8
31
votes
1 answer

How to define colors in a figure using Plotly Graph Objects and Plotly Express

There are many questions and answers that touch upon this topic one way or another. With this contribution I'd like to clearly show why an easy approch such as marker = {'color' : 'red'} will work for plotly.graph_objects (go), but color='red' will…
vestland
  • 55,229
  • 37
  • 187
  • 305
31
votes
2 answers

Changing visibility of a Dash Component by updating other Component

I need to hide some Components, for example by clicking on a checkbox (for example, a graph or a table). However, the documentation did not provide a suitable section for this purpose. Thanks in advance!
29
votes
5 answers

How to define callbacks in separate files? (plotly dash)

Background Dash web applications have a dash application instance, usually named app, and initiated like this: app = dash.Dash(__name__) Then, callbacks are added to the application using a callback decorator: @app.callback(...) def…
Niko Föhr
  • 28,336
  • 10
  • 93
  • 96
27
votes
4 answers

How to export a plotly dashboard app into a html standalone file to share with the others?

I have built a plotly interactive dashboard, and am looking a way to export this app to HTML format, and share it with others. Is there any hints for me? I have googled, and most answer divert me to the following…
yts61
  • 1,142
  • 2
  • 20
  • 33
26
votes
6 answers

plotly dash: change default port

Following plotly dash getting started guide but when trying to run python app.py get message: OSError: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions Seems the default address:…
Vlad
  • 3,058
  • 4
  • 25
  • 53
21
votes
2 answers

How can we create data columns in Dash Table dynamically using callback with a function providing the dataframe

I am trying to create dash table on Web using Inputs. However the issue is that the data is created from database from the callback and a priori, I do not know the names of the columns unless the pandas dataframeis created using the callback…
Stan
  • 786
  • 1
  • 9
  • 25
21
votes
3 answers

Showing a simple matplotlib plot in plotly Dash

Is it possible to show a simple matplotlib plot (the kind usually generated by plt.show()) in plotly's Dash framework? Or just plotly-like graphs with plotly's Scatters and Data traces? Specifically I guess I need a different component than Graph…
Giora Simchoni
  • 3,487
  • 3
  • 34
  • 72
21
votes
2 answers

Live updating only the data in Dash/plotly

I want to monitor some live data and allow the user to select their own ranges when interacting with the plots. I created this small example (got it from the tutorial) and the problem is, every time I update the plot, everything gets reset since…
tamasgal
  • 24,826
  • 18
  • 96
  • 135
20
votes
3 answers

Dash ImportError: cannot import name 'get_current_traceback' from 'werkzeug.debug.tbtools'

I'm trying to run a simple dash app in a conda environment in Pycharm, however I'm running into the error in the title. Weirdly enough, I couldn't find a place on the internet which has a mention of this bug, except for here. The code is simple, as…
quiccode
  • 313
  • 1
  • 3
  • 13
1
2 3
99 100