code: def enable_gui(gui=None, app=None):
          
          # Deferred import
          from pydev_ipython.inputhook import enable_gui as real_enable_gui
          try:
              return real_enable_gui(gui, app)
          except ValueError as e:
              raise UsageError("%s" % e)
docs: Switch amongst GUI input hooks by name.