param.reactive.reactive_ops.unwatch#

reactive_ops.unwatch(watcher) → None[source]#

Undo a previous call to watch().

Parameters:

watcher (param.parameterized.Watcher or list[param.parameterized.Watcher]) – The value watch() returned.

Examples

>>> import param
>>> rx_value = param.rx(10)
>>> watcher = rx_value.rx.watch(lambda v: print(f"Updated value: {v}"))
>>> rx_value.rx.unwatch(watcher)
>>> rx_value.rx.value = 20  # No longer prints anything.