title: Jupyter/Ipython Notebook: How to time multiline segment of code?
body: <p>The <a href="https://ipython.org/ipython-doc/3/interactive/magics.html" rel="noreferrer"><code>%time</code> magic command</a> allows you to conveniently time a single line of Python code. </p>
  
  <p>Can I also time a block of code without wrapping it in a function first? Is there an equivalent function that times an entire cell?</p>