How to quit an iPython notebook debug session?

Viewed 4385

I am using iPython notebook, with the %%debug command. My code performs a loop, in which I set some break point. Now I can't seem to stop the loop with 'CTRL+C' (works in the regular ipython).

For example, let's say I have some loop with an ipdb.set_trace() inside. Now if I hit the 'C' key the loop continues to the ipdb.set_trace(), with no option from the user the exit the loop with 'CTRL+D/C'.

How can I exit such a loop?

2 Answers
Related