
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import dash
from dash import html
import dash_bootstrap_components as dbc
# Create the Dash app
app = dash.Dash(__name__, use_pages=True, external_stylesheets=[dbc.themes.BOOTSTRAP])
# App layout
app.layout = dbc.Container(
[
dbc.Row(
[
dbc.Col(
[
dash.page_container # Ensure this is correctly used to display pages
],
style={"padding-left": "5rem", "padding-right": "5rem"},
),
]
),
], fluid=True
)
if __name__ == "__main__":
app.run_server(debug=True)