Add support for firing one-time events when observing
Open
- Dominant language
- Python
- Stars
- 653
- Forks
- 217
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 2
Description
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.
Contributor guide
Assessment
This issue has not been assessed yet.