Update two widgets at same time

Is it possible to update two widgets simultaneously without a for loop; similar to widget.param.set_param(), but maybe like pn.set_param({widget1: {"value": 25}, "widget2": {"value": 35}})

1 Like

I don’t think so, but @philippjfr would know for sure. Is your main goal to reduce verbosity and complexity, or to make it faster, or to set them into a mutually compatible set of values without intermediate errors caused by triggering watchers?

1 Like

I’m similarly interested in such functionality. My use case is to synchronize multiple Card widgets so that once one of them gets minimized, all others follow suit. Using a for loop, It’s very noticeable they are not closed at the same time.

1 Like

Similar as leogolds;
set them into a mutually compatible set of values without intermediate errors caused by triggering watchers