{"action":"created","issue":{"url":"https://api.github.com/repos/sympy/sympy/issues/10264","labels_url":"https://api.github.com/repos/sympy/sympy/issues/10264/labels{/name}","comments_url":"https://api.github.com/repos/sympy/sympy/issues/10264/comments","events_url":"https://api.github.com/repos/sympy/sympy/issues/10264/events","html_url":"https://github.com/sympy/sympy/issues/10264","id":122304301,"number":10264,"title":"Printing matrices in the qtconsole fails when LaTeX is not installed","user":{"login":"Emile59","id":16306940,"avatar_url":"https://avatars.githubusercontent.com/u/16306940?v=3","gravatar_id":"","url":"https://api.github.com/users/Emile59","html_url":"https://github.com/Emile59","followers_url":"https://api.github.com/users/Emile59/followers","following_url":"https://api.github.com/users/Emile59/following{/other_user}","gists_url":"https://api.github.com/users/Emile59/gists{/gist_id}","starred_url":"https://api.github.com/users/Emile59/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Emile59/subscriptions","organizations_url":"https://api.github.com/users/Emile59/orgs","repos_url":"https://api.github.com/users/Emile59/repos","events_url":"https://api.github.com/users/Emile59/events{/privacy}","received_events_url":"https://api.github.com/users/Emile59/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-15T16:01:05Z","updated_at":"2015-12-15T16:30:12Z","closed_at":null,"body":"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.\r\nRecently I got a new computer on which I installed the same anaconda distribution, and I can't print matrices anymore because of this error :  \r\n\r\n    Python 2.7.11 |Anaconda 2.4.1 (64-bit)| (default, Dec  7 2015, 14:10:42) [MSC v.1500 64 bit (AMD64)]\r\n    Type \"copyright\", \"credits\" or \"license\" for more information.\r\n    \r\n    IPython 4.0.1 -- An enhanced Interactive Python.\r\n    ?         -> Introduction and overview of IPython's features.\r\n    %quickref -> Quick reference.\r\n    help      -> Python's own help system.\r\n    object?   -> Details about 'object', use 'object??' for extra details.\r\n    %guiref   -> A brief reference about the graphical user interface.\r\n    \r\n    from sympy import Matrix\r\n    \r\n    from sympy import init_printing\r\n    \r\n    init_printing()\r\n    \r\n    Matrix([0,0])\r\n    Out[4]: \r\n    Traceback (most recent call last):\r\n    \r\n      File \"C:\\Users\\Anaconda2\\lib\\site-packages\\IPython\\core\\formatters.py\", line 337, in __call__\r\n        return printer(obj)\r\n    \r\n      File \"C:\\Users\\Anaconda2\\lib\\site-packages\\sympy\\interactive\\printing.py\", line 127, in _print_latex_png\r\n        return _matplotlib_wrapper(s)\r\n    \r\n      File \"C:\\Users\\Anaconda2\\lib\\site-packages\\sympy\\interactive\\printing.py\", line 90, in _matplotlib_wrapper\r\n        return latex_to_png(o)\r\n    \r\n      File \"C:\\Users\\Anaconda2\\lib\\site-packages\\IPython\\lib\\latextools.py\", line 87, in latex_to_png\r\n        bin_data = f(s, wrap)\r\n    \r\n      File \"C:\\Users\\Anaconda2\\lib\\site-packages\\IPython\\lib\\latextools.py\", line 106, in latex_to_png_mpl\r\n        mt.to_png(f, s, fontsize=12)\r\n    \r\n      File \"C:\\Users\\Anaconda2\\lib\\site-packages\\matplotlib\\mathtext.py\", line 3207, in to_png\r\n        rgba, depth = self.to_rgba(texstr, color=color, dpi=dpi, fontsize=fontsize)\r\n    \r\n      File \"C:\\Users\\Anaconda2\\lib\\site-packages\\matplotlib\\mathtext.py\", line 3172, in to_rgba\r\n        x, depth = self.to_mask(texstr, dpi=dpi, fontsize=fontsize)\r\n    \r\n      File \"C:\\Users\\Anaconda2\\lib\\site-packages\\matplotlib\\mathtext.py\", line 3145, in to_mask\r\n        ftimage, depth = self.parse(texstr, dpi=dpi, prop=prop)\r\n    \r\n      File \"C:\\Users\\Anaconda2\\lib\\site-packages\\matplotlib\\mathtext.py\", line 3118, in parse\r\n        box = self._parser.parse(s, font_output, fontsize, dpi)\r\n    \r\n      File \"C:\\Users\\Anaconda2\\lib\\site-packages\\matplotlib\\mathtext.py\", line 2374, in parse\r\n        six.text_type(err)]))\r\n    \r\n    ValueError: \r\n    \\left[\\begin{smallmatrix}0\\\\0\\end{smallmatrix}\\right]\r\n          ^\r\n    Expected \"\\right\" (at char 6), (line:1, col:7)\r\n    \r\n    Failed to render latex: \r\n    \\left[\\begin{matrix}0\\\\0\\end{matrix}\\right]\r\n          ^\r\n    Expected \"\\right\" (at char 6), (line:1, col:7) \r\n\r\nOn this topic (https://github.com/sympy/sympy/pull/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."},"comment":{"url":"https://api.github.com/repos/sympy/sympy/issues/comments/164818849","html_url":"https://github.com/sympy/sympy/issues/10264#issuecomment-164818849","issue_url":"https://api.github.com/repos/sympy/sympy/issues/10264","id":164818849,"user":{"login":"moorepants","id":276007,"avatar_url":"https://avatars.githubusercontent.com/u/276007?v=3","gravatar_id":"","url":"https://api.github.com/users/moorepants","html_url":"https://github.com/moorepants","followers_url":"https://api.github.com/users/moorepants/followers","following_url":"https://api.github.com/users/moorepants/following{/other_user}","gists_url":"https://api.github.com/users/moorepants/gists{/gist_id}","starred_url":"https://api.github.com/users/moorepants/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moorepants/subscriptions","organizations_url":"https://api.github.com/users/moorepants/orgs","repos_url":"https://api.github.com/users/moorepants/repos","events_url":"https://api.github.com/users/moorepants/events{/privacy}","received_events_url":"https://api.github.com/users/moorepants/received_events","type":"User","site_admin":false},"created_at":"2015-12-15T16:30:12Z","updated_at":"2015-12-15T16:30:12Z","body":"The other workaround is to use `init_printing(use_latex='matplotlib')`, but you will only get unicode printing of the matrices."}}