File size: 751 Bytes
68ab0a7 dd595ae 58659e4 68ab0a7 b67a1e9 fc7d582 68ab0a7 0d0013d 217a92f 68ab0a7 ea1a913 |
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 |
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)
external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css']
app = dash.Dash(__name__, prevent_initial_callbacks = 'initial_duplicate', use_pages=True, external_stylesheets=external_stylesheets)
app.layout = html.Div([
html.H1('Multi-page app with Dash Pages'),
html.Div([
html.Div(
dcc.Link(f"{page['name']}", href=page["path"])
) for page in dash.page_registry.values() if page["location"] == "sidebar"
]),
dash.page_container
])
if __name__ == '__main__':
app.run(debug=True, use_reloader=True, host='0.0.0.0', port=5000) |