# Update two widgets at same time

**URL:** <https://discourse.holoviz.org/t/update-two-widgets-at-same-time/2263>\
**Category:** Panel\
**Tags:** panel\
**Created:** [May 7, 2021, 7:59pm UTC](https://discourse.holoviz.org/t/update-two-widgets-at-same-time/2263 "2021-05-07T19:59:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahuang11](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/ahuang11/32/4947_2.png) [@ahuang11](https://discourse.holoviz.org/u/ahuang11)\
**Post date:** [May 7, 2021, 7:59pm UTC](https://discourse.holoviz.org/t/update-two-widgets-at-same-time/2263/1 "2021-05-07T19:59:08Z")

</div>

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}})`

---

<div class="post-metadata">

**Author:** ![jbednar](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/jbednar/32/23_2.png) [@jbednar](https://discourse.holoviz.org/u/jbednar)\
**Post date:** [May 14, 2021, 6:54pm UTC](https://discourse.holoviz.org/t/update-two-widgets-at-same-time/2263/2 "2021-05-14T18:54:20Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![leogolds](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/leogolds/32/2062_2.png) [@leogolds](https://discourse.holoviz.org/u/leogolds)\
**Post date:** [May 14, 2021, 8:07pm UTC](https://discourse.holoviz.org/t/update-two-widgets-at-same-time/2263/3 "2021-05-14T20:07:25Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ahuang11](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/ahuang11/32/4947_2.png) [@ahuang11](https://discourse.holoviz.org/u/ahuang11)\
**Post date:** [May 14, 2021, 11:18pm UTC](https://discourse.holoviz.org/t/update-two-widgets-at-same-time/2263/4 "2021-05-14T23:18:07Z")

</div>

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