mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -05:00
* Updated Polyscript and added Panel worker test * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
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")
|