You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
see the motivating PR #864
Previously with on trait change, some change handlers would take no arguments and be called standalone completely separately of any trait change trigger.
Now, with observe, the handlers are forced to take a single argument event, and where these handlers were called standalone we pass event=None as an argument. These could be refactored so that the code called independently is wrapped in a normal method. Then this method can be called whenever it is needed on its own, and also called by the handler.
The text was updated successfully, but these errors were encountered:
see the motivating PR #864
Previously with on trait change, some change handlers would take no arguments and be called standalone completely separately of any trait change trigger.
Now, with observe, the handlers are forced to take a single argument event, and where these handlers were called standalone we pass
event=None
as an argument. These could be refactored so that the code called independently is wrapped in a normal method. Then this method can be called whenever it is needed on its own, and also called by the handler.The text was updated successfully, but these errors were encountered: