[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
ipython/IPython/frontend/zmqterminal/app.py
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
--hb=33990
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
--hb=33990
and press crtl+c
output
KeyboardInterrupt
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
/usr/local/lib/python2.6/dist-packages/IPython/frontend/terminal/interactiveshell.pyc
in raw_input(self, prompt)
338
339 try:
--> 340 line =
raw_input_original(prompt).decode(self.stdin_encoding)
341 except ValueError:
342 warn("\n********\nYou or a %run:ed script called
sys.stdin.close()"
/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()
146
147 def init_code(self):
/usr/local/lib/python2.6/dist-packages/IPython/zmq/kernelmanager.pyc in
interrupt_kernel(self)
916 self.kernel.send_signal(signal.SIGINT)
917 else:
--> 918 raise RuntimeError("Cannot interrupt kernel. No kernel
is running!")
919
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
running)
-> calling ipkernel directly show the next traceback
--
Omar Andres Zapata Mesa
Head Developer Phenomenology of Fundamental Interactions Group (Gfif)
http://gfif.udea.edu.co
Division of computer science Gfif Developers (Gfif Dev)
http://gfifdev.udea.edu.co
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