Add support for firing one-time events when observing
オープン
- 主要言語
- Python
- スター
- 653
- フォーク
- 217
- 平均マージ
- 2日 21時間
- マージ済み PR(30日)
- 2
説明
I have a frequent pattern that comes up time and again with my jupyter widgets (depends on traitlets) and think it would be helpful to have this supported in the API:
```
append_type_radio.observe(toggle_append_type, names='value');
toggle_append_type({'new': toggle_append_radio.value}) # call it once to initialize
```
^-- the above is a hack and I would much prefer a way to have a signal automatically come when subscribing (i.e. eager execution)
or, optionally, a way to manually trigger an event, so that anything that depends on initial state can get updated.
コントリビューションガイド
評価
この issue はまだ評価されていません。