[IPython-dev] exit() in a Spyder script
Robert Pollak
robert.pollak at mykolab.com
Mon Sep 22 00:50:25 EDT 2014
[2nd try - it seems this didn't get posted because I was not subscribed.]
Hello,
I am using the Spyder IDE [1] within WinPython [2]. Spyder runs scripts
within IPython. When I take a script containing exit(), and run it
within Spyder, this command kills the Python kernel:
"""
It seems the kernel died unexpectedly. Use 'Restart kernel' to continue
using this console.
"""
I have reported this to Spyder as issue 1974 [3], but I was told that
> [...] the exception should be caught inside IPython itself.
Is this true?
In the IPython documentation I have read about an ask_exit() callback.
Should Spyder register this callback to catch the exit()?
Best regards,
Robert
[1] https://code.google.com/p/spyderlib/
[2] http://winpython.sourceforge.net/
[3] https://code.google.com/p/spyderlib/issues/detail?id=1974
More information about the IPython-dev
mailing list