-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.py
83 lines (78 loc) · 2.42 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# pandas
import pandas as pd
# dash
import dash
import dash_core_components as dcc
import dash_html_components as html
import dash_table
import plotly.graph_objects as go
from components.tabs import *
from components.dashboard import *
from callbacks import register_callbacks
app = dash.Dash(
__name__, meta_tags=[{"name": "viewport", "content": "width=device-width"}]
)
server = app.server
app.config['suppress_callback_exceptions']=True
# Layout
app.layout = html.Div(
[
html.Div(id='hidden-div', style={'display':'none'}),
dcc.Store(id="aggregate_data"),
# empty Div to trigger javascript file for graph resizing
html.Div(id="output-clientside"),
html.Div(
[
# left image
html.Div(
[
html.Img(
src=app.get_asset_url("ds4A-logo.png"),
id="ds4A-logo-image",
style={
"height": "60px",
"width": "auto",
"margin-bottom": "25px",
},
),
],
className="one-third column",
),
# title
html.Div(
[
html.Div(
[
html.H3(
"ICFES results analysis",
style={"margin-bottom": "0px"},
),
]
)
],
className="one-half column",
id="title",
style={'display': 'block'}
),
# tabs
html.Div(
[
build_tabs()
],
className="one-third column",
id="button",
),
],
id="header",
className="row flex-display",
style={"margin-bottom": "25px"},
),
html.Div(children=build_dashboard(), id="app-content")
],
id="mainContainer",
style={"display": "flex", "flex-direction": "column"},
)
register_callbacks(app)
# Main
if __name__ == "__main__":
app.run_server(debug=True)