-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdash_app.py
49 lines (42 loc) · 1.41 KB
/
dash_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
import dash
from dash import dcc, html
from dash.dependencies import Input, Output
import pandas as pd
import numpy as np
import dash_bootstrap_components as dbc
import dash_bootstrap_templates
from datetime import date
import plotly.express as px
#from plotly import graph_objs as go
#from plotly.tools import make_subplots
#from plotly.subplots import make_subplots
dbc_css = "https://cdn.jsdelivr.net/gh/AnnMarieW/dash-bootstrap-templates/dbc.min.css"
dash_bootstrap_templates.load_figure_template('sandstone')
app = dash.Dash(
__name__, meta_tags=[{"name": "viewport", "content": "width=device-width"}],
external_stylesheets=[dbc.themes.SANDSTONE, dbc.icons.FONT_AWESOME, dbc_css],
use_pages=True
)
app.title = "Data Jobs in Israel 2024"
server = app.server
# Layout of Dash App
app.layout = dbc.Container(
children=[
dbc.NavbarSimple([
#dbc.NavItem(dbc.NavLink("Data Jobs in Israel 2024", href="/"),
# style = {"alignment": "left"} ),
dbc.NavItem(dbc.NavLink("About", href="/about", style = {"alignment": "right"}))
],
sticky="top",
color="primary",
brand="Data Jobs in Israel 2024",
brand_href="/",
links_left=False,
dark=True,
brand_style ={"font-size": 24},
),
dash.page_container,
]
, fluid=True)
if __name__ == '__main__':
app.run_server()