notebook.community
Edit and run
In [26]: from sympy import * from IPython.display import Latex as render_latex k_i, m, i = symbols("k_i m i") render_latex('$'+latex(Sum(k_i**2, (i, 1, m)))+'$')
from sympy import * from IPython.display import Latex as render_latex k_i, m, i = symbols("k_i m i") render_latex('$'+latex(Sum(k_i**2, (i, 1, m)))+'$')
Out[26]: $\sum_{i=1}^{m} k_{i}^{2}$
In [ ]: