How to stop Python program execution in IDLE
Posted
by joaoc
on Stack Overflow
See other posts from Stack Overflow
or by joaoc
Published on 2010-03-17T07:04:19Z
Indexed on
2010/03/17
7:11 UTC
Read the original article
Hit count: 507
I have a python script that uses plt.show()
as it's last instruction. When it runs IDLE just hangs after the last instruction. I get the image but I don't get the prompt back.
On other scripts I typically use ctrl-c
to break the program (sometimes doesn't work immediately) but how do I get the prompt back with the plt.show()
? Ctrl-c
doesn't work...
Are there other ways to stop the program?
This is IDLE on Windows, if it makes any difference.
© Stack Overflow or respective owner