environment/lib/python2.7/site-packages/IPython/zmq/eventloops.py
def enable_gui(gui, kernel=None):
    """Enable integration with a given GUI"""
    if gui not in loop_map:
        raise ValueError("GUI %r not supported" % gui)
    if kernel is None:
        if Application.initialized():
            kernel = getattr(Application.instance(), 'kernel', None)
        if kernel is None:
            raise RuntimeError("You didn't specify a kernel,"
                " and no IPython Application with a kernel appears to be running."
            )
    loop = loop_map[gui]
    if kernel.eventloop is not None and kernel.eventloop is not loop:
        raise RuntimeError("Cannot activate multiple GUI eventloops")
    kernel.eventloop = loop
def enable_gui(gui, kernel=None):
    if gui not in loop_map:
        raise ValueError("GUI %r not supported" % gui)
    if kernel is None:
        if Application.initialized():
            kernel = getattr(Application.instance(), 'kernel', None)
        if kernel is None:
            raise RuntimeError("You didn't specify a kernel,"
                " and no IPython Application with a kernel appears to be running."
            )
    loop = loop_map[gui]
    if kernel.eventloop is not None and kernel.eventloop is not loop:
        raise RuntimeError("Cannot activate multiple GUI eventloops")
    kernel.eventloop = loop
def enable_gui ( gui , kernel = None ) : if gui not in loop_map : raise ValueError ( "GUI %r not supported" % gui ) if kernel is None : if Application . initialized ( ) : kernel = getattr ( Application . instance ( ) , 'kernel' , None ) if kernel is None : raise RuntimeError ( "You didn't specify a kernel," " and no IPython Application with a kernel appears to be running." ) loop = loop_map [ gui ] if kernel . eventloop is not None and kernel . eventloop is not loop : raise RuntimeError ( "Cannot activate multiple GUI eventloops" ) kernel . eventloop = loop
Enable integration with a given GUI
Enable integration with a given GUI