Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fallback to the string printer if the latex printer raises an exception
Currently it just prints an error and gives an empty png. However, there is a lot of LaTeX that matplotlib cannot parse, e.g., matrices. This gives a better user experience for SymPy, which has a text printer that it can fallback to. SymPy cannot just disable the LaTeX printer because it is desired for the notebook, and there is no way for it to enable LaTeX just in the notebook, or change the printer precedence order. I have left in the debug logging of the error (to the terminal). Fixes jupyter#63. This supersedes jupyter#57, although I don't know if it fixes the issue there.
- Loading branch information