Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dash-plotly progress bar in browser does not show up

I have something like this in my layout.

import dash
import dash_html_components as html
import dash_core_components as dcc
import dash_bootstrap_components as dbc


app = dash.Dash()

app.layout = html.Div([

    html.H1('Progress bar'),
    dbc.Progress(id="progress", value=50, striped=True, animated=True)
])

app.run_server(debug=True, port=9995)

I expect a progress bar at a value of 50% showing up in my dash app. But nothing shows up. Any idea why?

like image 875
Soren Avatar asked Oct 15 '25 13:10

Soren


1 Answers

Instead of

app = dash.Dash()

Use

app = dash.Dash(external_stylesheets=[dbc.themes.BOOTSTRAP])
like image 54
Dave Reikher Avatar answered Oct 18 '25 03:10

Dave Reikher



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!