bundles / traitlets latest / traitlets / traitlets / HasTraits / unobserve
function
traitlets.traitlets:HasTraits.unobserve
source: /traitlets/traitlets.py:1721
Signature
def unobserve(self, handler: t.Callable[..., t.Any], names: Sentinel | str | t.Collection[Sentinel | str] = traitlets.All, type: Sentinel | str = change) → NoneSummary
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