How to display graph with MathJax in jupyter notebook?
I ended up creating a new magic, based on the %dot magic, called %dotMJ.  It works by looking for &lt;text&gt; objects in the SVG (corresponding to labels in GV), checking if they are LaTeX code (start/end with $), and if so converting them to a &lt;div&gt; and wrapping with a &lt;foreignObject&gt;.  This allows MathJax to "see" the LaTeX code and convert it appropriately for display.

Source is available at: https://gitlab.com/jello/ML-Notebooks/blob/master/dotMJ_magic.py