[IPython-dev] timeit cell-mode bug?

Tony Yu tsyu80 at gmail.com
Sun May 27 19:39:16 EDT 2012


Congratulations on merging the cell magics branch! This looks like it'll
allow some really amazing stuff, but just having the timeit, prun, and
cython magics seem worth the effort.

Speaking of `timeit` I noticed that it returns without execution if no
setup code is given. For example,

%%timeit
2**2


will return without execution. A simple change to the magics def seems to
work on my system:
https://github.com/tonysyu/ipython/commit/4f6b8aa607f6fa35fcf17387a8d248c56aedcc6f

Cheers!
-Tony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20120527/0bc64126/attachment.html>


More information about the IPython-dev mailing list