altavir / jupyter-mpp-demo

A Kotlin jupyter plugin demo
5 stars 1 forks source link

Bind several widgets to a common state #3

Open altavir opened 3 years ago

altavir commented 3 years ago

Currently, only the last widget is bound to the state because the update task is name-bound.

In order to fix that, one needs to add two keys to the widget - its unique ID used to find it in the window and its data id, used for updates. Several widgets could share the same data id.