I'm trying out threading in Python, and I found this answer with an example: https://stackoverflow.com/a/53344690/6252186 . When I run this code in an IPython console, it works as it is supposed for the first time, but the second time the prompt "ready for keyboard input" does not appear, and I can only get it running again if I restart the terminal / kernel.
In a (interactive) Python console, it works the first time, but when I type "exit", it prints "End" but I don't come back to the terminal prompt and am stuck with a blinking cursor.
What's going wrong and why are Python and IPython behaving differently?