If you print dp0 you'll see that it doesn't properly render. Maybe it is invalid LaTeX.
moorepants.info +01 530-601-9791 On Sun, Oct 8, 2017 at 8:38 AM, Jason Moore <moorepa...@gmail.com> wrote: > I'm not able to get rendered LaTeX output in the qtconsole 4.3.1 at all. > > moorepants.info > +01 530-601-9791 <(530)%20601-9791> > > On Sun, Oct 8, 2017 at 8:03 AM, Amine Aboufirass < > amine.aboufir...@gmail.com> wrote: > >> Does anyone know why this is happening... >> >> On Saturday, October 7, 2017 at 2:50:58 PM UTC+2, Amine Aboufirass wrote: >>> >>> 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? >>> >>> -- >> 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+unsubscr...@googlegroups.com. >> To post to this group, send email to sympy@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/ms >> gid/sympy/c7583c29-c69c-4c60-9429-d58217e8bcf0%40googlegroups.com >> <https://groups.google.com/d/msgid/sympy/c7583c29-c69c-4c60-9429-d58217e8bcf0%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> 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 sympy+unsubscr...@googlegroups.com. To post to this group, send email to sympy@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/CAP7f1Aibzd3aDt%2BcdgvhA-E%3DibruqvTz5Hfyr8yCCn_XP1A7eg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.