Here is an example of inline LaTeX: $E=mc^2$.
And here is a display equation: $$ \frac{\partial \mathcal{L}}{\partial \theta} = \nabla_{\theta} \mathcal{L} $$
I can also include nicely formatted code blocks.
1
2
3
4
5
def factorial(n):
if n == 0:
return 1
else:
return n * factorial(n-1)