How to display mathematical equations in Jupyter Notebook
Did you know that Jupyter Notebook has built-in LaTeX support? I didn’t.
When you change the format of a cell to “Markdown,” you can write not only in the markdown syntax, which is obvious ;) but you can also include LaTeX code to generate formulas:
1
2
3
\begin{align*}
(a+b)^2 = a^2+2ab+b^2
\end{align*}
After pressing ENTER, this gets automatically converted to:

Awesome! ;)
Did you enjoy reading this article?
Would you like to learn more about leveraging AI to drive growth and innovation, software craft in data engineering, and MLOps?
Subscribe to the newsletter or add this blog to your RSS reader (does anyone still use them?) to get a notification when I publish a new essay!
You may also like

Bartosz Mikulski
- MLOps engineer by day
- AI and data engineering consultant by night
- Python and data engineering trainer
- Conference speaker
- Contributed a chapter to the book "97 Things Every Data Engineer Should Know"
- Twitter: @mikulskibartosz
- Mastodon: @mikulskibartosz@mathstodon.xyz