[IPython-User] [nbviewer] order of print and display() output

giacomo boffi giacomo.boffi@polimi...
Wed Aug 29 00:20:54 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

http://nbviewer.ipython.org/url/stru.polimi.it/people/boffi/nb/06_3DOF.ipynb

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