-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnav.py
43 lines (40 loc) · 2.1 KB
/
nav.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
import dash_bootstrap_components as dbc
def Navbar():
navbar2 = dbc.NavbarSimple(
brand="NavbarSimple",
brand_href="#",
color="primary",
dark=True,
)
navbar = dbc.NavbarSimple(
children=[
dbc.NavItem(dbc.NavLink("How to use", href="/instruction"),style={'text-align': 'center',"margin-left": "50px",'width': '200px'}),
# dbc.DropdownMenu(
# nav=True,
# in_navbar=True,
# label="Feature Importance",
# children=[
# dbc.DropdownMenuItem("Classification",href="/feature_importance_classification"),
# dbc.DropdownMenuItem("Regression",href="/feature_importance_regression"),
# ],
# ),
dbc.NavItem(dbc.NavLink("Feature Importance (Classification)", href="/feature_importance_classification"),style={'text-align': 'center',"margin-left": "50px",'width': '180px'}),
dbc.NavItem(dbc.NavLink("Feature Importance (Regression)", href="/feature_importance_regression"),style={'text-align': 'center','width': '180px'}),
dbc.NavItem(dbc.NavLink("Clustering", href="/clustering"),style={'text-align': 'center','width': '150px'}),
dbc.NavItem(dbc.NavLink("Dimension Reduction (Clustering)", href="/dimension_reduction_clustering"),style={'text-align': 'center','width': '180px'}),
dbc.NavItem(dbc.NavLink("Dimension Reduction (Local Neighbors)", href="/knn"),style={'text-align': 'center','width': '180px'}),
# dbc.DropdownMenu(
# nav=True,
# in_navbar=True,
# label="Dimension Reduction",
# children=[
# dbc.DropdownMenuItem("Clustering",href="/dimension_reduction_clustering"),
# dbc.DropdownMenuItem("KNN",href="/knn"),
# ],
# ),
],
brand="Home",
brand_href="/home",
sticky="top",
)
return navbar