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

Brian Granger ellisonbg@gmail....
Wed Aug 29 10:42:34 CDT 2012


This is definitely a bug, could you file an issue on the ipython
github issues page?

On Tue, Aug 28, 2012 at 2:55 PM,  <giacomo.boffi@polimi.it> wrote:
> 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
>
> _______________________________________________
> IPython-User mailing list
> IPython-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-user



-- 
Brian E. Granger
Cal Poly State University, San Luis Obispo
bgranger@calpoly.edu and ellisonbg@gmail.com


More information about the IPython-User mailing list