|
import dash |
|
from dash import dcc, html, Output, Input |
|
import plotly.express as px |
|
import dash_callback_chain |
|
import yaml |
|
import polars as pl |
|
import os |
|
pl.enable_string_cache(False) |
|
|
|
app = dash.Dash(__name__, use_pages=True) |
|
|
|
app.layout = html.Div([ |
|
html.H1('Multi-page app with Dash Pages'), |
|
html.Div([ |
|
html.Div( |
|
dcc.Link(f"{page['name']} - {page['path']}", href=page["relative_path"]) |
|
) for page in dash.page_registry.values() |
|
]), |
|
dash.page_container |
|
]) |
|
|
|
if __name__ == '__main__': |
|
app.run(debug=False, use_reloader=False, host='0.0.0.0', port=5000) |