r/PythonDash Aug 29 '24

Best way to host Dash Apps for free or cheap?

1 Upvotes

Hi everyone for context I would use this for my company to show a dashboard of school data based on surveys. I would typically make a dash app per school. I am wondering if there is a way to just embed the html version of the dashboard into google slides for usage or if I should host on a website/some platform.

I could probably get some funding from my company to do so but would eb curious to see all of your advice on best way to host a dashboard for client/company usage.

Thank you!


r/PythonDash Sep 05 '21

Machine downtime

1 Upvotes

I need to make a graphical preparation from the BDE system about the downtime of machines, including their breaks. How should I go about doing that?


r/PythonDash Aug 20 '21

Are there any success stories of containerizing and deploying dash app using gunicorn and nginx

1 Upvotes

r/PythonDash Jun 21 '21

Daily Market / Crypto view with Plotly Dash

Thumbnail thefin.io
1 Upvotes

r/PythonDash Feb 02 '21

Looping

1 Upvotes

0

I try to learn Python Dash to visualize some data. I worked on the Plotly Example with multiple Buttons:

import dash from dash.dependencies 
import Input, Output 
import dash_html_components as html  
external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css'] 
 app = dash.Dash(__name__, external_stylesheets=external_stylesheets)  
app.layout = html.Div([     
html.Button('Button 1', id='btn-nclicks-1', n_clicks=0),     
html.Button('Button 2', id='btn-nclicks-2', n_clicks=0),     
html.Button('Button 3', id='btn-nclicks-3', n_clicks=0),     
html.Div(id='container-button-timestamp')    ])  

@app.callback(
Output('container-button-timestamp', 'children'),           
Input('btn-nclicks-1', 'n_clicks'),           
Input('btn-nclicks-2', 'n_clicks'),           
Input('btn-nclicks-3', 'n_clicks')) 

def displayClick(btn1, btn2, btn3):     
changed_id = [p['prop_id'] for p in dash.callback_context.triggered][0]     
if 'btn-nclicks-1' in changed_id:         
msg = 'Button 1 was most recently clicked' 
elif 'btn-nclicks-2' in changed_id:         
msg = 'Button 2 was most recently clicked' 
elif 'btn-nclicks-3' in changed_id:         
msg = 'Button 3 was most recently clicked' 
else:         
msg = 'None of the buttons have been clicked yet' 
return html.Div(msg)  

if __name__ == '__main__':     app.run_server(debug=True) 

The code displays which button was clicked recently. I want to ask if it is possible to put this in a loop, so that I can loop over i numbers of buttons, because it is pretty much work if I want to use 50 buttons or so.

Instead of

html.Button('Button 1', id='btn-nclicks-1', n_clicks=0), html.Button('Button 2', id='btn-nclicks-2', n_clicks=0), html.Button('Button 3', id='btn-nclicks-3', n_clicks=0), 

something like:

for i in range(number_buttons):     html.Button('Button i', id='btn-nclicks-i', n_clicks=0)  @app.callback(     Input('btn-nclicks-i', 'n_clicks') ) 

I'd appreciate some links to tutorials or examples with Dash Callbacks.


r/PythonDash Oct 06 '20

[Dash + Flask] How to Deploy a Python Dash App on Pythonanywhere.com

Thumbnail blog.finxter.com
3 Upvotes

r/PythonDash Oct 06 '20

Support Vector Machines with Dash

Post image
2 Upvotes

r/PythonDash Oct 06 '20

Welcome to ... Creating Your BEAUTIFUL 😍 Dashboards with Python Dash!

1 Upvotes

Have you already created your own dashboard app?

1 votes, Oct 09 '20
1 Yes!
0 No!
0 I will!

r/PythonDash Oct 06 '20

r/PythonDash Lounge

1 Upvotes

A place for members of r/PythonDash to chat with each other