New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
%run filename autocompletion "The kernel heartbeat has been inactive ... " error #440
Comments
In addition, I'm using openSUSE 11.4 x64 and KDE. ipython is installed on top of Python 2.7.1 |EPD 7.0-1 (64-bit) |
When you run it from a terminal, does it complete successfully? Does any message appear at the terminal? When you run it as an application, what's the working directory ( |
Yes if I fire up the qtconsole in terminal, it completes fine without any message on the terminal. In qtconsole application, %pwd Thank you, |
Hmm, nothing obvious there, then. I can't make a launcher for it work properly at the moment, so I can't try to replicate it. |
OK, I've managed to get a launcher that works, by having the entry point create a PYTHONPATH environment variable. But I can't replicate the problem you're having - |
When I make it an application, do I have to do something with PYTHONPATH? |
Yes. ipython-qtconsole I installed on top of my system python does not show this. It seems it only happens with the one with EPD. Interesting. |
If you install the dev version of IPython, you shouldn't have to do anything with your PYTHONPATH. I usually use the dev version inside a virtualenv, so the script called by the launcher had to change the PYTHONPATH so it could import the dev version. @fperez: Do you know of any EPD-on-Linux users who could replicate this? And any way to debug a kernel crash that only occurs when the terminal isn't there to display the traceback? |
I'm not sure I'm reading this correctly, but are you using current IPython with EPD Python, or the IPython that ships with EPD when you see the problem? If it's the IPython that ships with EPD, this may well be a bug that's been fixed since then. |
Of course this is IPython 0.11.dev - which I installed on top of EPD with python setup.py install. (After getting rid of older ipython) |
@takluyver, I don't use EPD on linux, unfortunately. I'm pinging @rkern in case he can get in touch with someone at Enthought who does the linux epd work who could help. One thing that could be done would be to instrument the code to log everything to a file instead of to stdout. Right now we don't have an easy flag for that, so it would need to be done manually. But replacing |
@joonpy - a lot of app code has been rewritten recently, can you check to make sure this still happens with current master? |
Will do. Sorry I have an important exam next Wednesday so I won't be able to test it by then. Anyway thanks! |
I've reproduced this on Ubuntu. I've also had reports of the qtconsole not working when run from pythonw on Windows, which may be related. My guess is there's something not properly checking for the existence of stdout/err, which are nonexistent or closed in these situations. |
Glad that you were able to reproduce this. :) |
Should be fixed by #542 |
I just installed the new version and the %run autocompletion worked well. Thanks! |
It only happens when I run it as an application, with "Run in terminal" unchecked.
(When I run it in terminal, it does not happen)
When I press tab to autocomplete during the input of the argument of the run magic command, for example:
In [2]: %run 'work[TAB]
ipython-qtconsole hangs for a while, and then gives me the following error:
The kernel heartbeat has been inactive for 3.00 seconds. Do you want to restart the kernel? You may first want to check the network connection.
The text was updated successfully, but these errors were encountered: