-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
19 lines (13 loc) · 663 Bytes
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env python
# IMPORTS:
import dash # (version == 1.12.0)
# Module containing links for Bootswatch themes https://dash-bootstrap-components.opensource.faculty.ai/docs/themes/
from dash_bootstrap_components import themes
### BUILD THE APP - Define Dash instance
# Dashboard entry through index.py
app = dash.Dash(__name__, suppress_callback_exceptions=True, external_stylesheets=[themes.SPACELAB])
# Alternatively: Render Dashboard in Jupyter Lab
#from jupyter_dash import JupyterDash
#app = JupyterDash(__name__, suppress_callback_exceptions=True, external_stylesheets=[themes.SPACELAB])
# Expose the Flask variable in the file
server = app.server