bundles / traitlets 5.14.3 / traitlets / traitlets / HasTraits / unobserve
function
traitlets.traitlets:HasTraits.unobserve
source: /traitlets/traitlets.py :1675
Signature
def unobserve ( self , handler : t.Callable[..., t.Any] , names : Sentinel | str | t.Iterable[Sentinel | str] = traitlets.All , type : Sentinel | str = change ) → None Summary
Remove a trait change handler.
Extended Summary
This is used to unregister handlers to trait change notifications.
Parameters
handler: callableThe callable called when a trait attribute changes.
names: list, str, All (default: All)The names of the traits for which the specified handler should be uninstalled. If names is All, the specified handler is uninstalled from the list of notifiers corresponding to all changes.
type: str or All (default: 'change')The type of notification to filter by. If All, the specified handler is uninstalled from the list of notifiers corresponding to all types.
Aliases
-
traitlets.HasTraits.unobserve