'python shell control+c disabled after plt.show()

I am running a local python shell in my mac terminal. Normally, when I press control+c, the current line is terminated, as expected in a terminal. However, after executing plt.show() and closing the plot, control+c no longer has any effect. I have tried plt.ion() - this doesn't help.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source