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: # FIXME: move to ipyparallel Kernel subclass if 'ipyparallel' in sys.modules: from ipyparallel import bind_kernel bind_kernel() try: connect_qtconsole(argv=arg_split(arg_s, os.name=='posix')) except Exception as e: warnings.warn("Could not start qtconsole: %r" % e) return
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: # FIXME: move to ipyparallel Kernel subclass if 'ipyparallel' in sys.modules: from ipyparallel import bind_kernel bind_kernel() try: connect_qtconsole(argv=arg_split(arg_s, os.name == 'posix')) except Exception as e: warnings.warn("Could not start qtconsole: %r" % e) return
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
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
def spawn_qt(self, bv): connect_qtconsole(argv=[ "--no-confirm-exit", ]) return
def new_qt_console(self): """Start a new qtconsole connected to our kernel.""" self.consoles.append( connect_qtconsole(self.kernel.abs_connection_file, profile=self.kernel.profile))
def new_qt_console(self, evt=None): """start a new qtconsole connected to our kernel""" new_console = connect_qtconsole(self.ipkernel.abs_connection_file, profile=self.ipkernel.profile) return new_console