コード例 #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
コード例 #2
0
ファイル: zmqshell.py プロジェクト: dvska/ipython
 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