[IPython-dev] Interrupting external kernel on Windows
Thomas Kluyver
takowl at gmail.com
Mon May 12 13:49:38 EDT 2014
On 12 May 2014 05:58, Doug Blank <doug.blank at gmail.com> wrote:
> Attempting to interrupt an executing command on a third-party kernel on
> Windows. In fact, I went back to the simple_kernel [1], and I couldn't
> interrupt it either on Windows. Is there some special handling for
> interrupting a kernel on Windows?
Yes, it appears there is. On Windows, we make a 'Win32 event' [1], which
the kernel process listens for using some machinery in pyzmq [2]. It looks
like the event number that the child process needs to listen for is
currently passed to the kernel as a command line argument, which we can
only do when we know we're starting an IPython kernel - we should probably
pass it as an environment variable which any kernel can use.
[1]
https://github.com/ipython/ipython/blob/master/IPython/kernel/launcher.py#L186
[2]
https://github.com/ipython/ipython/blob/master/IPython/kernel/zmq/kernelapp.py#L164
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140512/ea091150/attachment.html>
More information about the IPython-dev
mailing list