[IPython-dev] IPython In-process kernel support
Thu Sep 6 16:39:36 CDT 2012
There is no real obstacle, but it isn't very convenient. The trouble is
that the terminal frontend is truly synchronous, unlike a GUI frontend
which is driven by an event loop. Here is how the terminal frontend
You can see that 'handle_stdin_request' will never be called. To handle
stdin, something must be special cased: the terminal frontend, the embedded
kernel, or the embedded kernel manager. I'm not sure how to handle this
cleanly. Perhaps the simplest thing is to add a switch to the kernel for
calling 'raw_input' directly (bypassing the kernel manager). Only terminal
frontends would use this switch. Perhaps others have better ideas.
On Thu, Sep 6, 2012 at 4:20 PM, Thomas Kluyver <email@example.com> wrote:
> Is there any major obstacle to implementing raw_input in the terminal
> frontend, or do you think it's just not worth it?
> IPython-dev mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev