Let`s first install Latex andSympy:
pip install latex
pip install sympy
With these two libraries you can pass any math funcion to Latex for after it including in your blog.
\> python
>>> from sympi import *
>>> from latex import *
>>> latex(sympify(‘1+2**(x+y)’))
‘2^{x + y} + 1’
Now you can include in your latex documents:
$$2^{x + y} + 1$$