[IPython-dev] crtl+c annotations in zmq terminal for suggestions

Omar Andrés Zapata Mesa andresete.chaos at gmail.com
Tue Sep 13 15:01:15 EDT 2011

hi all.
Doing some tests in the zmq frontend I find the next things
from minrk repo  git://github.com/minrk/ipython.git in the branch termzmq

->open a new kernel but not using
just run python -c "from IPython.zmq.ipkernel import main; main()"

 python -c "from IPython.zmq.ipkernel import main; main()"
[IPKernelApp] To connect another client to this kernel, use:
[IPKernelApp] --existing --shell=49587 --iopub=57815 --stdin=55774

if you press crtl+c the kernel output is
^CKeyboardInterrupt caught in kernel
that is right!!

-> open in other console
python app.py  --existing --shell=49587 --iopub=57815 --stdin=55774

and press crtl+c

RuntimeError                              Traceback (most recent call last)
in raw_input(self, prompt)

    339         try:
--> 340             line =
    341         except ValueError:
    342             warn("\n********\nYou or a %run:ed script called

/home/omazapa/MyProjects/ipython/IPython/frontend/zmqterminal/app.py in
handle_sigint(self, *args)

    143         # FIXME: this doesn't work, the kernel just dies every time

    144         self.shell.write('KeyboardInterrupt\n')
--> 145         self.kernel_manager.interrupt_kernel()
    147     def init_code(self):

/usr/local/lib/python2.6/dist-packages/IPython/zmq/kernelmanager.pyc in

    916                 self.kernel.send_signal(signal.SIGINT)
    917         else:
--> 918             raise RuntimeError("Cannot interrupt kernel. No kernel
is running!")

    920     def signal_kernel(self, signum):

RuntimeError: Cannot interrupt kernel. No kernel is running!

-> it produces a ugly traceback but the kernel is not die.
-> any know why is tell me that  No kernel is running? (but the kernel is
-> calling ipkernel directly show the next traceback

Omar Andres Zapata Mesa
Head Developer Phenomenology of Fundamental Interactions Group (Gfif)
Division of computer science Gfif Developers (Gfif Dev)
Systems Engineering Student
Universidad de Antioquia At Medellin - Colombia
Usuario Linux  #490962
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20110913/b63e7ea4/attachment.html>

More information about the IPython-dev mailing list