How to interrupt the loop with IPython.embed() inside
<p>Using <code>IPython.embed()</code> inside a loop for debugging. The loop got to <code>embed()</code>, I finished debugging, and wanted to stop the outside loop. Typing <code>quit()</code> and then <code>I</code> <code>I</code> to interrupt kernel doesn't work quickly enough, and I again end up in new <code>embed()</code> prompt a moment later.</p>

<p>What's the easiest way to interrupt the entire execution?</p>