If you want to use latex to display math equations in Jupyter Notebook, use the display module in the IPython library.
The code above shows how it works.