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)