__init__

Widget.__init__()[source]

Initialize the Widget instance and set up traitlet observers.

This constructor initializes the Widget instance by calling the parent class’s initializer and sets up an observer for the ‘simulate’ traitlet. The observer triggers the _simulate function whenever the ‘simulate’ traitlet changes.

Observers:
  • simulate: Calls the _simulate function when the ‘simulate’ traitlet changes.