[IPython-User] [nbviewer, nbconvert] print + display() out of order

giacomo.boffi@poli... giacomo.boffi@poli...
Tue Aug 28 16:55:17 CDT 2012


if i mix print statements and display() calls in a for loop, the
output is correct if i execute the cell in a notebook, but if i pass
the url of my notebook to nbviewer.ipython.org i see that all the
print'ed matter runs together, followed by the display()'ed stuff

for i, eqn in enumerate(eqn_list):
    print "Equation n.", i+1
    display(eqn)

in notebook produces the like of

Equation n. 1
w_1^2 - w^2 = p_1
Equation n. 2
w_2^2 - w^2 = p_2
...

while in nbviewer it gives

Equation n. 1
Equation n. 2
...
w_1^2 - w^2 = p_1
w_2^2 - w^2 = p_2
...

oops, i forgot to mention that i'm using sympy

                                   gb



More information about the IPython-User mailing list