-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathapp.py
37 lines (31 loc) · 1.1 KB
/
app.py
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
from dash import Dash, dcc
import dash_bootstrap_components as dbc
import dash
app = Dash(__name__, use_pages=True, external_stylesheets=[dbc.themes.BOOTSTRAP, dbc.icons.FONT_AWESOME],
suppress_callback_exceptions=True, prevent_initial_callbacks=True)
server = app.server
############################################################################################
# Import shared components
from assets.footer import _footer
from assets.nav import _nav
############################################################################################
# App Layout
app.layout = dbc.Container([
dbc.Row([
dbc.Col([_nav], width = 2),
dbc.Col([
dbc.Row([dash.page_container])
], width = 10),
]),
dbc.Row([
dbc.Col([], width = 2),
dbc.Col([
dbc.Row([_footer])
], width = 10),
]),
dcc.Store(id='browser-memo', data=dict(), storage_type='session')
], fluid=True)
############################################################################################
# Run App
if __name__ == '__main__':
app.run_server(debug=False, host='0.0.0.0')