[IPython-User] [notebook, sympy] inserting rendered latex in output

Giacomo Boffi giacomo.boffi@polimi...
Thu Aug 2 18:02:25 CDT 2012


Matthias BUSSONNIER <bussonniermatthias@gmail.com> writes:

> Le 2 août 2012 à 08:39, Giacomo Boffi a écrit :
>
>> I'd like to put into a cell input 
>> 
>> some_display_function(r'$\alpha ='+latex(mymatrix)+'$')
>> 
>> and have a rendering of the above in the cell output, is this
>> possible?
>> 
>> tx in advance
>>                                                        gb
>
> from IPython.display import Latex, display  
> display(Latex(r'$$  \LaTeX   $$'))
>
>
> See introduction notebook in docs/examples/notebooks/  for more
> info.

oops, it was in the 00_notebook_tour...
                    ^^
Thank you Matthias, what i finally used , in sympy, was

       display(Math(r'F = \frac{1}{k} '+latex(a_simpy_matrix)))





More information about the IPython-User mailing list