News for hackers. Stuff that matters.
Re:Jupyter.org now runs its notebooks on WebAssembly by mitchellgoffpc on Sunday March 06, 2022 @01:16AM (#30575453)
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}*'))
Re:Jupyter.org now runs its notebooks on WebAssembly by katmannthree on Sunday March 06, 2022 @08:50AM (#30577589)
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.