[IPython-User] [notebook, sympy] inserting rendered latex in output
Matthias BUSSONNIER
bussonniermatthias@gmail....
Thu Aug 2 13:36:20 CDT 2012
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.
--
Matthias
>
> note: display(Eq(symbols('alpha'),mymatrix))
> reports an error because matrices can't be sympyfied
>
> _______________________________________________
> IPython-User mailing list
> IPython-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-user
More information about the IPython-User
mailing list