mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -05:00
* Fix #2114 - Cleanup the test folder + automation * Merged both test and tests into a single folder
13 lines
259 B
Python
13 lines
259 B
Python
import panel as pn
|
|
|
|
pn.extension(sizing_mode="stretch_width")
|
|
|
|
slider = pn.widgets.FloatSlider(start=0, end=10, name="amplitude")
|
|
|
|
|
|
def callback(new):
|
|
return f"Amplitude is: {new}"
|
|
|
|
|
|
pn.Row(slider, pn.bind(callback, slider)).servable(target="simple_app")
|