[IPython-User] question about cell magic

Tony Yu tsyu80@gmail....
Thu Jun 21 15:38:40 CDT 2012


On Thu, Jun 21, 2012 at 4:36 PM, Fernando Perez <fperez.net@gmail.com>wrote:

> On Thu, Jun 21, 2012 at 1:26 PM, Zoltán Vörös <zvoros@gmail.com> wrote:
> > When I run the code above, the kernel returns immediately, and it does
> not
> > produce any output. On the other hand, if I run this
>
> That's very strange and I can't reproduce your problem, it works
> perfectly OK for me here:
>
> In [1]: %%timeit
>   ...: x = 0
>   ...: for i in range(100000):
>   ...:     x += i**2
>   ...:
> 100 loops, best of 3: 17.3 ms per loop
>
> This was tested at the console, qt console and notebook and it works
> the same in all three cases.
>
> I have no idea how what you report can even be happening, as both
> %timeit and %%timeit use the exact same codepaths, only a tiny amount
> at the start is different.
>
>
This sounds like an issue from an older checkout, and it should be fixed in
https://github.com/ipython/ipython/pull/1769/files

-Tony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20120621/82c2a753/attachment.html 


More information about the IPython-User mailing list