problems exiting from Python using iPython/Spyder
This question has been asked before, but I have tried the solutions in related questions such as this to no avail. I am having problems with Python's exit command, and I have ruled out a problem with my code as run by vanilla Python 3. The problem comes when I run it with iPython or in Spyder's iPython console. When I use just a simple exit command, I get the error: NameError: name 'exit' is not defined I have already imported sys as suggested by the other link. The only thing that kind of works is to try sys.exit() in which case I get: An exception has occurred, use %tb to see the full