-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Printing matrices in the qtconsole fails when LaTeX is not installed #10264
Comments
Do you know if Spyder is using the IPython qtconsole? |
I just reproduced this with SymPy 0.7.6.1, Spyder 2.3.8, Python 3.5.1, IPython 4.0.1. Spyder uses an IPython qtconsole by default. If LaTeX is not installed and you try to print a Matrix, then it will default to the matplotlib backend, which can't print matrices, thus the error you see. The only current solution for correct printing is to install LaTeX with dvipng and the qtconsole printing will work. This is an outstanding issue that we haven't come up with a good solution for yet because IPython doesn't let you detect what the frontend of the kernel is. |
The commit message in this pull request explains the issue: #9976 |
Also see this: #10005 |
The other workaround is to use |
First, thank you very much for your fast answers ! So if I understood you well, I need to install dvipng https://www.ctan.org/tex-archive/dviware/dvipng (which is effectively installed on the computer without the error as I have miktex) to get back the alternative to mathtext printer ? In any case, I'm trying this and let you know asap. |
Yes, the best solution is to install a LaTeX distribution that includes dvipng. The second solution is to use |
Well it works perfectly ! I did it on two different computers, and the problem is solved. Thank you very much Mr.Moore. |
This is a bug in the upstream qtconsole that has been fixed jupyter/qtconsole#63. The workarounds that @moorepants describes above should work in the meantime. |
I have one computer with Anaconda 2.4.1, on which I can print symbolic matrices in latex on the Ipython console embedded in Spyder2 without raising any error. On this computer was installed another version of python 2.7.10 for other softwares.
Recently I got a new computer on which I installed the same anaconda distribution, and I can't print matrices anymore because of this error :
On this topic (#9959) it is said that there is a work around to avoid matplotlib's mathtext issues, but as the printing works perfectly with others printers on my old computer I would like to know if you have any idea of what is missing in the new computer, meanings in the anaconda 2.4.0 package itself.
The text was updated successfully, but these errors were encountered: