def set_interactive(enabled=True, app=None):
 if enabled:
  inputhook_manager.enable_gui('vispy', app)
 else:
  inputhook_manager.disable_gui()

def set_interactive ( enabled = True , app = None ) : if enabled : inputhook_manager . enable_gui ( 'vispy' , app ) else : inputhook_manager . disable_gui ( )
general api for a script specifying that it is being run in an interactive environment .