def _preview_button_fired(self): net = self.create() if net is not None: from ffnetapp import FFnetApp app = FFnetApp() # copy.deepcopy(self.app) # Use copy app.net = net fig = GraphAnimation(app = app) fig.configure_traits(kind='livemodal', view='figure_view')