Spyder IDE gets stuck

Hi, I am using the Spyder IDE on Linux, and the console gets stuck right away. Clicking the “x” does not stop the window.

I managed to get around this problem using this site: python - Can't Kill PyQT Window after closing it. Which requires me to restart the kernal - Stack Overflow