@on_trait_change('window:opened')
    def _on_window_opened(self, obj, trait_name, old, new):
        if trait_name == 'opened':
            self.start()
We start the engine when the window is opened.
dataset/ETHPy150Open enthought/mayavi/mayavi/plugins/envisage_engine.py/EnvisageEngine._on_window_opened