-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.py
33 lines (29 loc) · 1.2 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
from dash import Dash, dcc, callback, Input, Output, State
import dash_bootstrap_components as dbc
import dash
from dash import html
_font = "https://fonts.googleapis.com/css2?family=Lato&display=swap"
app = Dash(__name__, use_pages=True, external_stylesheets=[dbc.themes.BOOTSTRAP, dbc.icons.FONT_AWESOME, _font],
suppress_callback_exceptions=True, prevent_initial_callbacks=True)
app._favicon = ("assets/img/favicon.ico") # custom path to favicon
server = app.server
############################################################################################
# Import shared components
from assets.sidebar import _sidebar
############################################################################################
# App Layout
app.layout = dbc.Container([
dbc.Row([
dbc.Col([
_sidebar
], width = 2),
dbc.Col([
dbc.Row([dash.page_container])
], className = 'page-content', width = 10),
]),
dcc.Store(id='browser-memo', data=dict(), storage_type='memory')
], fluid=True)
############################################################################################
# Run App
if __name__ == '__main__':
app.run_server(debug=False)