4 ms·
It’s possible, though not quite as clean as you’d like: from IPython.display import display, Markdown as md display(md(f'*pi = {math.pi}*'))
by mitchellgoffpc 5y ago
It’s possible, though not quite as clean as you’d like:
from IPython.display import display, Markdown as md
display(md(f'*pi = {math.pi}*'))
- katmannthree 5y agoTried that, it works well for simple equations but python's string escape character is the same as LaTeX's control character for math objects (\frac{}{}, etc). Doing anything beyond the simplest of equations becomes ridiculously tedious.