# check out https://dash.plotly.com/ for documentation
# And check out https://py.cafe/maartenbreddels for more examples
from dash import Dash, Input, Output, callback, dcc, html
app = Dash(__name__)
md = """
# Dash demo
See [The dash examples index](https://dash-example-index.herokuapp.com/) for more examples.
"""
app.layout = html.Div(
children=[
dcc.Markdown(children=md, link_target="_blank"),
dcc.RangeSlider(min=0, max=100, id="slider", step=20, dots=True, value=[40,80]),
dcc.Slider(min=0, max=100, value=50, dots=True, step=20),
dcc.Markdown(id="markdown", children=["## Hello World"]),
],
style={
"display": "flex",
"flex-direction": "column",
"gap": "80px"
}
)
@callback(
Output("markdown", "children"),
Input("slider", "value"),
)
def update_markdown_style(value):
return [f"value: {value}"]