environment/lib/python2.7/site-packages/IPython/core/shellapp.py
def init_gui_pylab(self):
        """Enable GUI event loop integration, taking pylab into account."""
        if self.gui or self.pylab:
            shell = self.shell
            try:
                if self.pylab:
                    gui, backend = pylabtools.find_gui_and_backend(self.pylab)
                    self.log.info("Enabling GUI event loop integration, "
                              "toolkit=%s, pylab=%s" % (gui, self.pylab))
                    shell.enable_pylab(gui, import_all=self.pylab_import_all)
                else:
                    self.log.info("Enabling GUI event loop integration, "
                                  "toolkit=%s" % self.gui)
                    shell.enable_gui(self.gui)
            except Exception:
                self.log.warn("GUI event loop or pylab initialization failed")
                self.shell.showtraceback()
def init_gui_pylab(self):
        """Enable GUI event loop integration, taking pylab into account."""
        if self.gui or self.pylab:
            shell = self.shell
            try:
                if self.pylab:
                    gui, backend = pylabtools.find_gui_and_backend(self.pylab)
                    self.log.info("Enabling GUI event loop integration, "
                              "toolkit=%s, pylab=%s" % (gui, self.pylab))
                    shell.enable_pylab(gui, import_all=self.pylab_import_all)
                else:
                    self.log.info("Enabling GUI event loop integration, "
                                  "toolkit=%s" % self.gui)
                    shell.enable_gui(self.gui)
            except Exception:
                self.log.warn("GUI event loop or pylab initialization failed")
                self.shell.showtraceback()
def init_gui_pylab ( self ) : if self . gui or self . pylab : shell = self . shell try : if self . pylab : gui , backend = pylabtools . find_gui_and_backend ( self . pylab ) self . log . info ( "Enabling GUI event loop integration, " "toolkit=%s, pylab=%s" % ( gui , self . pylab ) ) shell . enable_pylab ( gui , import_all = self . pylab_import_all ) else : self . log . info ( "Enabling GUI event loop integration, " "toolkit=%s" % self . gui ) shell . enable_gui ( self . gui ) except Exception : self . log . warn ( "GUI event loop or pylab initialization failed" ) self . shell . showtraceback ( )
Enable GUI event loop integration, taking pylab into account.
Enable GUI event loop integration taking pylab into account .