On Thursday, 12 June 2014 03:51:23 UTC+1, Carlos Córdoba wrote: > > Hi Dave, > > This is working for me with IPython 2.1.0. Are you using IPython master? > > > Cheers, > Carlos > > I've managed to reproduce it!
The trick is that it always works in a newly opened IPython console. It's only after you Restart the console that you lose the ability to break out of any loops with Ctrl-C. I hit this problem because I'm always hitting Ctrl-. to restart my console as it's quicker and more convenient than opening a new console. Note that this doesn't occur in the qtconsole for me. Let me know if you can repro the problem! Thanks, Dave In [1]: from time import sleep ...: while True: ...: sleep(2) ...: --------------------------------------------------------------------------- KeyboardInterrupt Traceback (most recent call last) <ipython-input-1-0b0776baa1cf> in <module>() 1 from time import sleep 2 while True: ----> 3 sleep(2) 4 KeyboardInterrupt: Restarting kernel... ------------------------------ In [1]: from time import sleep ...: while True: ...: sleep(2) --------------------------------------------------------------------------- KeyboardInterrupt Traceback (most recent call last) <ipython-input-1-96b4b67498f8> in <module>() 1 from time import sleep 2 while True: ----> 3 sleep(2) KeyboardInterrupt: In [1]: -- You received this message because you are subscribed to the Google Groups "spyder" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/spyderlib. For more options, visit https://groups.google.com/d/optout.
