Exemplo n.º 1
0
    def qtconsole(self, arg_s):
        """Open a qtconsole connected to this kernel.
        
        Useful for connecting a qtconsole to running notebooks, for better
        debugging.
        """

        # %qtconsole should imply bind_kernel for engines:
        try:
            from IPython.parallel import bind_kernel
        except ImportError:
            # technically possible, because parallel has higher pyzmq min-version
            pass
        else:
            bind_kernel()

        try:
            p = connect_qtconsole(argv=arg_split(arg_s, os.name == 'posix'))
        except Exception as e:
            error("Could not start qtconsole: %r" % e)
            return
Exemplo n.º 2
0
 def qtconsole(self, arg_s):
     """Open a qtconsole connected to this kernel.
     
     Useful for connecting a qtconsole to running notebooks, for better
     debugging.
     """
     
     # %qtconsole should imply bind_kernel for engines:
     try:
         from IPython.parallel import bind_kernel
     except ImportError:
         # technically possible, because parallel has higher pyzmq min-version
         pass
     else:
         bind_kernel()
     
     try:
         p = connect_qtconsole(argv=arg_split(arg_s, os.name=='posix'))
     except Exception as e:
         error("Could not start qtconsole: %r" % e)
         return