pprint always prints in 2D text. The easiest way to do what you want
is something like

from sympy import latex
from IPython.display import Math
for f in p:
    Math(latex(f))

You can also use IPython.display.Latex, which requires you to use
latex(f, mode='inline').

Aaron Meurer


On Wed, Mar 11, 2015 at 8:20 PM,  <[email protected]> wrote:
> Hello,
>
> Probably a basic question..
>
> This works fine for pretty printing ascii, but I'd like to render 'typeset'
> versions of the expressions:
>
> p = [assoc_legendre(l, ml, x) for l in range(5) for ml in range(l)]
> for f in p:
>     pprint(f)
>
> If it matters: running sympy 0.7.6, Ipynb 3.0, FF36 linux, executed
> init_printing()
>
> Thanks,
> Steve
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/4d60b855-3824-4a81-915f-d25d4999882d%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAKgW%3D6LsUOtq6H-nC8XnqiY_8ghU0hWcC-3e2AUF7LxHfYV%3DHw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to