101 Input
#| standalone: true
#| components: [viewer]
#| layout: horizontal
#| viewerHeight: 800
from shiny.express import ui
ui.input_slider(
id="n",
label="Choose n",
min=0,
max=100,
value=20
)
## file: requirements.txt
shiny==1.0.0
#| standalone: true
#| components: [editor, viewer]
#| layout: horizontal
#| viewerHeight: 800
from shiny.express import ui
ui.input_slider(
id="n",
label="Choose n",
min=0,
max=100,
value=20
)
## file: requirements.txt
shiny==1.0.0
The source code for this exercise is at https://github.com/posit-conf-2024/intro-to-shiny-for-python/tree/main/docs/apps/101-input.