-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
15 lines (12 loc) · 678 Bytes
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#import dash
from dash_extensions.enrich import Dash, FileSystemStore
import dash_bootstrap_components as dbc
import os
os.makedirs("tmp/", exist_ok=True)
output_defaults=dict(backend=FileSystemStore(cache_dir="tmp/"), session_check=True)
app = Dash(__name__, suppress_callback_exceptions=True,output_defaults=output_defaults,
external_stylesheets=[dbc.themes.SPACELAB, 'https://codepen.io/chriddyp/pen/bWLwgP.css'],
external_scripts=["https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML" ])
app.title = "Dimension reduction with equadratures"
server = app.server
server.secret_key = os.environ.get('secret_key', 'secret')