-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.py
100 lines (91 loc) · 2.79 KB
/
index.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
import base64
import datetime
import io
import dash
from dash.dependencies import Input, Output, State
import dash_core_components as dcc
import dash_html_components as html
import dash_bootstrap_components as dbc
import dash_table
import pandas as pd
from app import app
from apps import ranking, table_select
tab1_content = html.Div([
dbc.Card(
dbc.CardBody(
[
html.P("This is tab 1!", className='card-text'),
dbc.Button("Click here", color="success"),
]
),
className="mt-3",
),
], className="container")
app.layout = html.Div([
dcc.Store(id='storage', storage_type='memory', data={}),
dbc.Tabs(
[
dbc.Tab(table_select.layout, label="Dataset"),
dbc.Tab(ranking.layout, label="Ranking"),
# dbc.Tab(som_map.layout, label="Mapa SOM"),
# dbc.Tab(tab1_content, label="Tab 2"),
]
)
])
# navbar = dbc.NavbarSimple(
# children=[
# dbc.NavItem(dbc.NavLink("Link", href="#")),
# dbc.DropdownMenu(
# nav=True,
# in_navbar=True,
# label="Menu",
# children=[
# dbc.DropdownMenuItem("Entry 1"),
# dbc.DropdownMenuItem("Entry 2"),
# dbc.DropdownMenuItem(divider=True),
# dbc.DropdownMenuItem("Entry 3"),
# ],
# ),
# ],
# brand="Demo",
# brand_href="#",
# sticky="top",
# )
# body = dbc.Container(
# [
# dbc.Row(
# [
# dbc.Col(
# [
# html.H2("Heading"),
# html.P(
# """\
# Donec id elit non mi porta gravida at eget metus.
# Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum
# nibh, ut fermentum massa justo sit amet risus. Etiam porta sem
# malesuada magna mollis euismod. Donec sed odio dui. Donec id elit non
# mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus
# commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit
# amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed
# odio dui."""
# ),
# dbc.Button("View details", color="secondary"),
# ],
# md=4,
# ),
# dbc.Col(
# [
# html.H2("Graph"),
# dcc.Graph(
# figure={"data": [{"x": [1, 2, 3], "y": [1, 4, 9]}]}
# ),
# ]
# ),
# ]
# )
# ],
# className="mt-4",
# )
# app.layout = html.Div([navbar, body])
if __name__ == '__main__':
app.run_server(debug=True, port=8051)