Issue
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?
Solution
you can use "ctrl+d" to delete the cell..
or to quit the debug mode just do exit()
note: it is not recommended to delete the cell if there is importent code
Answered By - YOBA
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.