Spaces:
Sleeping
Sleeping
File size: 750 Bytes
19f4228 393bc94 19f4228 73ee99d 5057336 19f4228 9061fb4 950ff78 19f4228 9c1d788 |
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) |