Hi all, in my jupyter & bokeh-based apps, I’d like to occasionally update the value of a few widgets from a function or callback, without triggering the on_change callback registered to those widgets. Specifically, have it set up to save / restore the widget states in / from a config file. Each widget on_change triggers a plot update; setting new values on several widgets ends up repeatedly triggering updates for no good reason.
The desired behavior would be:
[user interacts with widget] → run on_change callback as normal
[code interacts with widget] → do NOT run on_change cb
Is this possible, e.g. through the subscribed_events property? I was not able to find any examples.
Guessing there’d be more efficient ways to structure my callbacks that also sidestep this, but likely beyond my capabilities.
Many thanks for any insight!