示例#1
0
    def enable_gui(gui=None, app=None):
        """Switch amongst GUI input hooks by name.
        """
        # Deferred import
        from IPython.lib.inputhook import enable_gui as real_enable_gui

        return real_enable_gui(gui, app)
示例#2
0
 def enable_gui(gui=None, app=None):
     """Switch amongst GUI input hooks by name.
     """
     # Deferred import
     from IPython.lib.inputhook import enable_gui as real_enable_gui
     try:
         return real_enable_gui(gui, app)
     except ValueError as e:
         raise UsageError("%s" % e)
示例#3
0
 def enable_gui(gui=None, app=None):
     """Switch amongst GUI input hooks by name.
     """
     # Deferred import
     from IPython.lib.inputhook import enable_gui as real_enable_gui
     try:
         return real_enable_gui(gui, app)
     except ValueError as e:
         raise UsageError("%s" % e)
示例#4
0
 def enable_gui(gui=None, app=None):
     """Switch amongst GUI input hooks by name.
     """
     # Deferred import
     from IPython.lib.inputhook import enable_gui as real_enable_gui
     return real_enable_gui(gui, app)