Display command output as math : IPython.display.Math?

And I’ll add that this works for me in JupyterLab:

from IPython.display import Math
Math(rf'\int_{{t=0}}^1 \frac{{1}}{{1+t^2}}\,\text{{d}}t = ')
2 Likes