Y
Hacker News
new
|
ask
|
show
|
jobs
by
mitchellgoffpc
1567 days 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}*'))
1 comments
katmannthree
1566 days ago
Tried 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.
link