Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

inprocess: output of first manually entered line fails to print after hidden=True execution #2886

Open
mspacek opened this Issue Feb 6, 2013 · 1 comment

Comments

Projects
None yet
1 participant
Contributor

mspacek commented Feb 6, 2013

I've been trying out the new inprocess kernel for my Qt4 app which uses a RichIPythonWidget. I like to execute a few things through the frontend on startup, and I do so using widget.execute('foo', hidden=True) or widget.execute_file('foo.py', hidden=True) to prevent them from displaying. I've noticed that after startup, the output of the first manually entered command (say, whos) isn't displayed when running the inprocess kernel. The second and all subsequent commands print out just fine though. This isn't a problem in the ZMQ kernel. Here's a minimal working example:

https://gist.github.com/mspacek/4718952/

Contributor

mspacek commented Feb 6, 2013

Also, it might be nice to have an example file like the above gist, to demonstrate the differences between starting the two types of kernels (assuming such a file doesn't already exist). It took me a while to figure this out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment