Equivalent for Button on_click for other widgets?

I am using Button.on_click to run a function when somebody clicks one of the buttons on the screen. This will update other widgets, create plots etc.

However, I could not find how to do the same for e.g. a Select widget so when the user selects a value, a function is run that may update other widgets? What is the equivalent of on_click for a Select widget so that changing the value will cause some processing?

Callbacks which give you access to the event object
See this Create Low-Level Python Links Using .watch — Panel v1.3.1

1 Like

An alternative to select.param.watch is (and more control)
pn.bind(callback, select.param.value)

https://panel.holoviz.org/how_to/streamlit_migration/interactivity.html

1 Like