
The drawback of using LaTeX is that for every formula an external program has to be invoked. This can become slow for large worksheets, and so I've experimented with embedding GtkMathView as well. GtkMathView currently breaks when scrolling the Reinteract text view, but I'm sure this can be fixed. Otherwise it works well enough for a screenshot:

Both are quite horrible hacks currently but I promise to polish. Thus far I offer (incomplete) Python bindings for GtkMathView and a Reinteract branch. The LaTeX formatter makes use of latexmath2png.py.
3 comments:
Thank you for a nice article ! :)
who generates the latex sympy or reinteract?
Check out Mathtex, it's the reimplemented renderer from matplotlib spun off into its own project. It should be able to render bitmap data to whatever canvas you like, and it's more portable than GTKMathView. :)
Post a Comment