-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
51 lines (42 loc) · 1.14 KB
/
app.py
File metadata and controls
51 lines (42 loc) · 1.14 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import dash
from dash import html, dcc
import dash_bootstrap_components as dbc
app = dash.Dash(__name__, use_pages=True, external_stylesheets=[dbc.themes.SPACELAB])
sidebar = dbc.Nav(
[
dbc.NavLink(
[
html.Div(page["name"], className="ms-2"),
],
href=page["path"],
active="exact",
)
for page in dash.page_registry.values()
],
vertical=True,
pills=True,
className="bg-light",
)
heading = html.Div(
"Economic Studio", className="bg-primary text-white text-center p-4 h2 mb-2 "
)
app.layout = dbc.Container([
dbc.Row([
dbc.Col(heading)
]),
html.Hr(),
dbc.Row(
[
dbc.Col(
[
sidebar
], xs=4, sm=4, md=2, lg=2, xl=2, xxl=2),
dbc.Col(
[
dash.page_container
], xs=8, sm=8, md=10, lg=10, xl=10, xxl=10)
]
)
], fluid=True)
if __name__ == "__main__":
app.run_server(host="0.0.0.0")