On Friday, March 13, 2015 at 9:11:17 PM UTC-5, Aaron Meurer wrote:
>
> 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)) 
>
>
*headslap* I tried a similar approach, but had the order of Math()/latex() 
backwards. Obvious in hindsight...thanks.
 

> You can also use IPython.display.Latex, which requires you to use 
> latex(f, mode='inline'). 
>
>
Again thank you...I'm still learning which bits belong to sympy and which 
bits belong ipynb. This helps.
 
Steve

Aaron Meurer 
>
>
> On Wed, Mar 11, 2015 at 8:20 PM,  <[email protected] <javascript:>> 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] <javascript:>. 
> > To post to this group, send email to [email protected] 
> <javascript:>. 
> > 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/702e9409-fcd8-413f-a25c-8194e3ab1c01%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to