<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 20 August 2013 12:11, Josh Wasserstein <span dir="ltr"><<a href="mailto:ribonucleico@gmail.com" target="_blank">ribonucleico@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks Thomas. On this topic, how do I profile a script from IPython with %mprun? Do I necessarily need to import it as a module to profile it?</blockquote>

</div><br></div><div class="gmail_extra">It looks like it's designed for functions, not scripts, so you would need to import a module. I don't know that much about it, though.<br><br></div><div class="gmail_extra">

Thomas<br></div></div>