title: How to limit the number of output lines in a given cell of the Ipython notebook?
body: <p>Sometimes my Ipython notebooks crash because I left a <code>print</code> statement in a big loop or in a recursive function. The kernel shows <code>busy</code> and the <code>stop</code> button is usually unresponsive. Eventually Chrome asks me if I want to kill the page or wait. </p>
  
  <p>Is there a way to limit the number of output lines in a given cell? Or any other way to avoid this problem?</p>