I was wondering if there is a possibilty to get all the callbacks related to a defined widget for test purposes.
Imagine the following:
input= widgets.Password(
value="",
placeholder="",
description='Password:',
disabled=False
)
def on_change(change):
# do something here
input.observe(on_change, names='value')
I want to know how i can get a list/set/dictionary/… which tells me all the callback functions related to the widget input.
In this case for example [on_change]
or something like that.
I already tried out various things, I guess the closes was:
print(password_input._display_callbacks.callbacks)
Nevertheless, this give me an empty list.