You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ LP comment 1 by: Fernando Perez, on 2008-11-13 07:01:48.986269+00:00 ]
Examples from sage showing the problem:
sage: %time 2r+2r
CPU times: user 0.00 s, sys: 0.00 s, total: 0.00 s
Wall time: 0.00 s
4
sage: %timeit 2r+2r
File "", line 6
2r+2r
^
SyntaxError: invalid syntax
sage: timeit('2r+2r')
625 loops, best of 3: 128 ns per loop
sage: timeit('2+2')
625 loops, best of 3: 1.84 µs per loop
sage: %timeit 2+2
10000000 loops, best of 3: 124 ns per loop
Removed from html.py
So the In and Out prompts in a static HTML conversion are the same length/aligned.
Normal notebook does not have nbsp either.
Original Launchpad bug 296116: https://bugs.launchpad.net/ipython/+bug/296116
Reported by: fdo.perez (Fernando Perez).
%timeit should preparse the input just like %time does.
Bug reported at SageDays11.
The text was updated successfully, but these errors were encountered: