<br><br><div class="gmail_quote">On Thu, Jun 21, 2012 at 4:36 PM, Fernando Perez <span dir="ltr"><<a href="mailto:fperez.net@gmail.com" target="_blank">fperez.net@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Thu, Jun 21, 2012 at 1:26 PM, Zoltán Vörös <<a href="mailto:zvoros@gmail.com">zvoros@gmail.com</a>> wrote:<br>
> When I run the code above, the kernel returns immediately, and it does not<br>
> produce any output. On the other hand, if I run this<br>
<br>
</div>That's very strange and I can't reproduce your problem, it works<br>
perfectly OK for me here:<br>
<br>
In [1]: %%timeit<br>
...: x = 0<br>
...: for i in range(100000):<br>
...: x += i**2<br>
...:<br>
100 loops, best of 3: 17.3 ms per loop<br>
<br>
This was tested at the console, qt console and notebook and it works<br>
the same in all three cases.<br>
<br>
I have no idea how what you report can even be happening, as both<br>
%timeit and %%timeit use the exact same codepaths, only a tiny amount<br>
at the start is different.<br><br></blockquote><div><br></div><div>This sounds like an issue from an older checkout, and it should be fixed in </div><div><a href="https://github.com/ipython/ipython/pull/1769/files">https://github.com/ipython/ipython/pull/1769/files</a></div>
<div><br></div><div>-Tony </div></div><br>