strange issue with latex printing

22 views
Skip to first unread message

Amine Aboufirass

unread,
Oct 7, 2017, 8:50:58 AM10/7/17
to sympy
I want to differentiate an expression as follows in `sympy`. I am using `jupyter qtconsole` with enabled latex:

    from sympy import *
    init_printing()
    p0,nu,lamb,k,epsp, dp0 = symbols(r'p_0, nu, lambda, kappa, \delta\epsilon_p^p, \deltap_0')
    test = Eq(epsp,((lamb-k)/nu)*dp0/p0)
    p0expr = solve(test,p0)[0]
    diff(p0expr, epsp)
    diff(p0expr,k)
    diff(p0expr,lamb)

I'd like to focus on the last three lines of code, lines 6, 7 and 8. Lines 7 and 8 output latex style output while line 6 does not. Why does line 6 not get output in latex? This makes no sense to me could anyone please explain?

Amine Aboufirass

unread,
Oct 8, 2017, 11:03:15 AM10/8/17
to sympy
Does anyone know why this is happening... 

Jason Moore

unread,
Oct 8, 2017, 11:38:32 AM10/8/17
to sy...@googlegroups.com
I'm not able to get rendered LaTeX output in the qtconsole 4.3.1 at all.

--
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 sympy+unsubscribe@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at https://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/c7583c29-c69c-4c60-9429-d58217e8bcf0%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Jason Moore

unread,
Oct 8, 2017, 11:44:16 AM10/8/17
to sy...@googlegroups.com
If you print dp0 you'll see that it doesn't properly render. Maybe it is invalid LaTeX.
Reply all
Reply to author
Forward
0 new messages