Latex output of Sympy displayed as a formula


#1

Hello all, and sorry if this question is a beginner’s one.

I do some symbolic computation in a code block using Sympy. And then I output the LateX version of the formula.
I’d like Datalore to display this in Latex. How do I give Datalore a hint about how to interpret the result ?

Example:
from sympy import symbols, Function, latex
x, a = symbols(‘x a’)
u = symbols(‘u’, cls=Function)
f = a**(u(x))
print("$${}$$".format(latex(f.diff(x))))


#2

Hello, Dominique,

In fact, this is a very good question! We do not support LaTeX formulas in the output for code blocks, so I’ll file a feature request and post updates here.


#3

Thanks. It could indeed be useful to nicely show steps in a symbolic computation sequence