title: how to break out of ipdb debugger?
body: <p>How do you exit the ipdb debugger? According to <a href="https://stackoverflow.com/questions/32055062/exiting-python-debugger-ipdb">this question</a> typing <code>q</code> should just work. I am on Python 3.6.6, Ipython 6.4.0 and that does not work in the following context: I have a function, <code>f(x)</code>, that is called from another function in a loop. After 2 iterations I just want to stop evaluation and exit the debugger. My <code>f(x)</code> just looks like this:</p>
  
  <pre><code>def f(x):
      ipdb.set_trace()
  </code></pre>
  
  <p>Literally meant to allow me to inspect <code>x</code> at runtime. However, typing <code>q</code> does not exit the debugger. Typing <code>os._exit(0)</code> kills the kernel. There must be something better? This is within a jupyter notebook.</p>