title: Time python scripts using IPython magic
body: <p>How can I time the execution of a Python script using the iPython %time or %%timeit magic commands?  For example, I have script.py and I'd like to know how long it takes to execute.  Small nuance: script.py needs input parameter(s).  The below doesn't seem to work.</p>
  
  <pre><code>%%time script.py input_param1 input_param2
  </code></pre>