Created
October 19, 2015 16:11
-
-
Save oliverlee/d9f777211a4269ba7777 to your computer and use it in GitHub Desktop.
mass_spring_damper error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --------------------------------------------------------------------------- | |
| CalledProcessError Traceback (most recent call last) | |
| /Users/oliverlee/repos/sympy/sympy/printing/preview.py in preview(expr, output, viewer, euler, packages, filename, outputbuffer, preamble, dvioptions, outputTexFile, **latex_settings) | |
| 200 check_output(['latex', '-halt-on-error', '-interaction=nonstopmode', | |
| --> 201 'texput.tex'], cwd=workdir, stderr=STDOUT) | |
| 202 except CalledProcessError as e: | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/subprocess.py in check_output(timeout, *popenargs, **kwargs) | |
| 619 if retcode: | |
| --> 620 raise CalledProcessError(retcode, process.args, output=output) | |
| 621 return output | |
| CalledProcessError: Command '['latex', '-halt-on-error', '-interaction=nonstopmode', 'texput.tex']' returned non-zero exit status 1 | |
| During handling of the above exception, another exception occurred: | |
| RuntimeError Traceback (most recent call last) | |
| /Users/oliverlee/repos/sympy/sympy/interactive/printing.py in _print_latex_png(o) | |
| 122 try: | |
| --> 123 return _preview_wrapper(s) | |
| 124 except RuntimeError: | |
| /Users/oliverlee/repos/sympy/sympy/interactive/printing.py in _preview_wrapper(o) | |
| 76 outputbuffer=exprbuffer, preamble=preamble, | |
| ---> 77 dvioptions=dvioptions) | |
| 78 except Exception as e: | |
| /Users/oliverlee/repos/sympy/sympy/printing/preview.py in preview(expr, output, viewer, euler, packages, filename, outputbuffer, preamble, dvioptions, outputTexFile, **latex_settings) | |
| 204 "'latex' exited abnormally with the following output:\n%s" % | |
| --> 205 e.output) | |
| 206 | |
| RuntimeError: 'latex' exited abnormally with the following output: | |
| b"This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded format=latex)\n restricted \\write18 enabled.\nentering extended mode\n(./texput.tex\nLaTeX2e <2015/01/01>\nBabel <3.9l> and hyphenation patterns for 79 languages loaded.\n(/usr/local/texlive/2015/texmf-dist/tex/latex/base/article.cls\nDocument Class: article 2014/09/29 v1.4h Standard LaTeX document class\n(/usr/local/texlive/2015/texmf-dist/tex/latex/base/size10.clo))\n\n! LaTeX Error: There's no line here to end.\n\nSee the LaTeX manual or LaTeX Companion for explanation.\nType H <return> for immediate help.\n ... \n \nl.3 \\\\u\n sepackage{amsmath,amsfonts}\\begin{document}\nNo pages of output.\nTranscript written on texput.log.\n" | |
| During handling of the above exception, another exception occurred: | |
| ParseException Traceback (most recent call last) | |
| ParseException: Expected "\right" (at char 14), (line:1, col:15) | |
| During handling of the above exception, another exception occurred: | |
| ParseSyntaxException Traceback (most recent call last) | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/matplotlib/mathtext.py in parse(self, s, fonts_object, fontsize, dpi) | |
| 2332 try: | |
| -> 2333 result = self._expression.parseString(s) | |
| 2334 except ParseBaseException as err: | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in parseString(self, instring, parseAll) | |
| 1124 # catch and re-raise exception from here, clears out pyparsing internal stack trace | |
| -> 1125 raise exc | |
| 1126 else: | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in parseString(self, instring, parseAll) | |
| 1114 try: | |
| -> 1115 loc, tokens = self._parse( instring, 0 ) | |
| 1116 if parseAll: | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in _parseCache(self, instring, loc, doActions, callPreParse) | |
| 1045 try: | |
| -> 1046 value = self._parseNoCache( instring, loc, doActions, callPreParse ) | |
| 1047 ParserElement._exprArgCache[ lookup ] = (value[0],value[1].copy()) | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in _parseNoCache(self, instring, loc, doActions, callPreParse) | |
| 988 try: | |
| --> 989 loc,tokens = self.parseImpl( instring, preloc, doActions ) | |
| 990 except IndexError: | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in parseImpl(self, instring, loc, doActions) | |
| 2623 if self.expr is not None: | |
| -> 2624 return self.expr._parse( instring, loc, doActions, callPreParse=False ) | |
| 2625 else: | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in _parseCache(self, instring, loc, doActions, callPreParse) | |
| 1045 try: | |
| -> 1046 value = self._parseNoCache( instring, loc, doActions, callPreParse ) | |
| 1047 ParserElement._exprArgCache[ lookup ] = (value[0],value[1].copy()) | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in _parseNoCache(self, instring, loc, doActions, callPreParse) | |
| 988 try: | |
| --> 989 loc,tokens = self.parseImpl( instring, preloc, doActions ) | |
| 990 except IndexError: | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in parseImpl(self, instring, loc, doActions) | |
| 2377 else: | |
| -> 2378 loc, exprtokens = e._parse( instring, loc, doActions ) | |
| 2379 if exprtokens or exprtokens.haskeys(): | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in _parseCache(self, instring, loc, doActions, callPreParse) | |
| 1045 try: | |
| -> 1046 value = self._parseNoCache( instring, loc, doActions, callPreParse ) | |
| 1047 ParserElement._exprArgCache[ lookup ] = (value[0],value[1].copy()) | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in _parseNoCache(self, instring, loc, doActions, callPreParse) | |
| 988 try: | |
| --> 989 loc,tokens = self.parseImpl( instring, preloc, doActions ) | |
| 990 except IndexError: | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in parseImpl(self, instring, loc, doActions) | |
| 2731 try: | |
| -> 2732 loc, tokens = self.expr._parse( instring, loc, doActions, callPreParse=False ) | |
| 2733 hasIgnoreExprs = ( len(self.ignoreExprs) > 0 ) | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in _parseCache(self, instring, loc, doActions, callPreParse) | |
| 1045 try: | |
| -> 1046 value = self._parseNoCache( instring, loc, doActions, callPreParse ) | |
| 1047 ParserElement._exprArgCache[ lookup ] = (value[0],value[1].copy()) | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in _parseNoCache(self, instring, loc, doActions, callPreParse) | |
| 988 try: | |
| --> 989 loc,tokens = self.parseImpl( instring, preloc, doActions ) | |
| 990 except IndexError: | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in parseImpl(self, instring, loc, doActions) | |
| 2360 # pre-parsed the string as part of our And pre-parsing | |
| -> 2361 loc, resultlist = self.exprs[0]._parse( instring, loc, doActions, callPreParse=False ) | |
| 2362 errorStop = False | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in _parseCache(self, instring, loc, doActions, callPreParse) | |
| 1045 try: | |
| -> 1046 value = self._parseNoCache( instring, loc, doActions, callPreParse ) | |
| 1047 ParserElement._exprArgCache[ lookup ] = (value[0],value[1].copy()) | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in _parseNoCache(self, instring, loc, doActions, callPreParse) | |
| 1014 for fn in self.parseAction: | |
| -> 1015 tokens = fn( instring, tokensStart, retTokens ) | |
| 1016 if tokens is not None: | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in wrapper(*args) | |
| 778 try: | |
| --> 779 ret = func(*args[limit[0]:]) | |
| 780 foundArity[0] = True | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/matplotlib/mathtext.py in math_string(self, s, loc, toks) | |
| 2403 # print "math_string", toks[0][1:-1] | |
| -> 2404 return self._math_expression.parseString(toks[0][1:-1]) | |
| 2405 | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in parseString(self, instring, parseAll) | |
| 1124 # catch and re-raise exception from here, clears out pyparsing internal stack trace | |
| -> 1125 raise exc | |
| 1126 else: | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in parseString(self, instring, parseAll) | |
| 1114 try: | |
| -> 1115 loc, tokens = self._parse( instring, 0 ) | |
| 1116 if parseAll: | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in _parseCache(self, instring, loc, doActions, callPreParse) | |
| 1045 try: | |
| -> 1046 value = self._parseNoCache( instring, loc, doActions, callPreParse ) | |
| 1047 ParserElement._exprArgCache[ lookup ] = (value[0],value[1].copy()) | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in _parseNoCache(self, instring, loc, doActions, callPreParse) | |
| 988 try: | |
| --> 989 loc,tokens = self.parseImpl( instring, preloc, doActions ) | |
| 990 except IndexError: | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in parseImpl(self, instring, loc, doActions) | |
| 2623 if self.expr is not None: | |
| -> 2624 return self.expr._parse( instring, loc, doActions, callPreParse=False ) | |
| 2625 else: | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in _parseCache(self, instring, loc, doActions, callPreParse) | |
| 1045 try: | |
| -> 1046 value = self._parseNoCache( instring, loc, doActions, callPreParse ) | |
| 1047 ParserElement._exprArgCache[ lookup ] = (value[0],value[1].copy()) | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in _parseNoCache(self, instring, loc, doActions, callPreParse) | |
| 988 try: | |
| --> 989 loc,tokens = self.parseImpl( instring, preloc, doActions ) | |
| 990 except IndexError: | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in parseImpl(self, instring, loc, doActions) | |
| 2765 # must be at least one | |
| -> 2766 loc, tokens = self.expr._parse( instring, loc, doActions, callPreParse=False ) | |
| 2767 try: | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in _parseCache(self, instring, loc, doActions, callPreParse) | |
| 1045 try: | |
| -> 1046 value = self._parseNoCache( instring, loc, doActions, callPreParse ) | |
| 1047 ParserElement._exprArgCache[ lookup ] = (value[0],value[1].copy()) | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in _parseNoCache(self, instring, loc, doActions, callPreParse) | |
| 988 try: | |
| --> 989 loc,tokens = self.parseImpl( instring, preloc, doActions ) | |
| 990 except IndexError: | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in parseImpl(self, instring, loc, doActions) | |
| 2623 if self.expr is not None: | |
| -> 2624 return self.expr._parse( instring, loc, doActions, callPreParse=False ) | |
| 2625 else: | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in _parseCache(self, instring, loc, doActions, callPreParse) | |
| 1045 try: | |
| -> 1046 value = self._parseNoCache( instring, loc, doActions, callPreParse ) | |
| 1047 ParserElement._exprArgCache[ lookup ] = (value[0],value[1].copy()) | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in _parseNoCache(self, instring, loc, doActions, callPreParse) | |
| 988 try: | |
| --> 989 loc,tokens = self.parseImpl( instring, preloc, doActions ) | |
| 990 except IndexError: | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in parseImpl(self, instring, loc, doActions) | |
| 2482 try: | |
| -> 2483 ret = e._parse( instring, loc, doActions ) | |
| 2484 return ret | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in _parseCache(self, instring, loc, doActions, callPreParse) | |
| 1045 try: | |
| -> 1046 value = self._parseNoCache( instring, loc, doActions, callPreParse ) | |
| 1047 ParserElement._exprArgCache[ lookup ] = (value[0],value[1].copy()) | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in _parseNoCache(self, instring, loc, doActions, callPreParse) | |
| 988 try: | |
| --> 989 loc,tokens = self.parseImpl( instring, preloc, doActions ) | |
| 990 except IndexError: | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in parseImpl(self, instring, loc, doActions) | |
| 2623 if self.expr is not None: | |
| -> 2624 return self.expr._parse( instring, loc, doActions, callPreParse=False ) | |
| 2625 else: | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in _parseCache(self, instring, loc, doActions, callPreParse) | |
| 1045 try: | |
| -> 1046 value = self._parseNoCache( instring, loc, doActions, callPreParse ) | |
| 1047 ParserElement._exprArgCache[ lookup ] = (value[0],value[1].copy()) | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in _parseNoCache(self, instring, loc, doActions, callPreParse) | |
| 988 try: | |
| --> 989 loc,tokens = self.parseImpl( instring, preloc, doActions ) | |
| 990 except IndexError: | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in parseImpl(self, instring, loc, doActions) | |
| 2360 # pre-parsed the string as part of our And pre-parsing | |
| -> 2361 loc, resultlist = self.exprs[0]._parse( instring, loc, doActions, callPreParse=False ) | |
| 2362 errorStop = False | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in _parseCache(self, instring, loc, doActions, callPreParse) | |
| 1045 try: | |
| -> 1046 value = self._parseNoCache( instring, loc, doActions, callPreParse ) | |
| 1047 ParserElement._exprArgCache[ lookup ] = (value[0],value[1].copy()) | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in _parseNoCache(self, instring, loc, doActions, callPreParse) | |
| 988 try: | |
| --> 989 loc,tokens = self.parseImpl( instring, preloc, doActions ) | |
| 990 except IndexError: | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in parseImpl(self, instring, loc, doActions) | |
| 2368 try: | |
| -> 2369 loc, exprtokens = e._parse( instring, loc, doActions ) | |
| 2370 except ParseSyntaxException: | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in _parseCache(self, instring, loc, doActions, callPreParse) | |
| 1045 try: | |
| -> 1046 value = self._parseNoCache( instring, loc, doActions, callPreParse ) | |
| 1047 ParserElement._exprArgCache[ lookup ] = (value[0],value[1].copy()) | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in _parseNoCache(self, instring, loc, doActions, callPreParse) | |
| 988 try: | |
| --> 989 loc,tokens = self.parseImpl( instring, preloc, doActions ) | |
| 990 except IndexError: | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in parseImpl(self, instring, loc, doActions) | |
| 2623 if self.expr is not None: | |
| -> 2624 return self.expr._parse( instring, loc, doActions, callPreParse=False ) | |
| 2625 else: | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in _parseCache(self, instring, loc, doActions, callPreParse) | |
| 1045 try: | |
| -> 1046 value = self._parseNoCache( instring, loc, doActions, callPreParse ) | |
| 1047 ParserElement._exprArgCache[ lookup ] = (value[0],value[1].copy()) | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in _parseNoCache(self, instring, loc, doActions, callPreParse) | |
| 988 try: | |
| --> 989 loc,tokens = self.parseImpl( instring, preloc, doActions ) | |
| 990 except IndexError: | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in parseImpl(self, instring, loc, doActions) | |
| 2731 try: | |
| -> 2732 loc, tokens = self.expr._parse( instring, loc, doActions, callPreParse=False ) | |
| 2733 hasIgnoreExprs = ( len(self.ignoreExprs) > 0 ) | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in _parseCache(self, instring, loc, doActions, callPreParse) | |
| 1045 try: | |
| -> 1046 value = self._parseNoCache( instring, loc, doActions, callPreParse ) | |
| 1047 ParserElement._exprArgCache[ lookup ] = (value[0],value[1].copy()) | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in _parseNoCache(self, instring, loc, doActions, callPreParse) | |
| 988 try: | |
| --> 989 loc,tokens = self.parseImpl( instring, preloc, doActions ) | |
| 990 except IndexError: | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in parseImpl(self, instring, loc, doActions) | |
| 2482 try: | |
| -> 2483 ret = e._parse( instring, loc, doActions ) | |
| 2484 return ret | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in _parseCache(self, instring, loc, doActions, callPreParse) | |
| 1045 try: | |
| -> 1046 value = self._parseNoCache( instring, loc, doActions, callPreParse ) | |
| 1047 ParserElement._exprArgCache[ lookup ] = (value[0],value[1].copy()) | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in _parseNoCache(self, instring, loc, doActions, callPreParse) | |
| 988 try: | |
| --> 989 loc,tokens = self.parseImpl( instring, preloc, doActions ) | |
| 990 except IndexError: | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in parseImpl(self, instring, loc, doActions) | |
| 2623 if self.expr is not None: | |
| -> 2624 return self.expr._parse( instring, loc, doActions, callPreParse=False ) | |
| 2625 else: | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in _parseCache(self, instring, loc, doActions, callPreParse) | |
| 1045 try: | |
| -> 1046 value = self._parseNoCache( instring, loc, doActions, callPreParse ) | |
| 1047 ParserElement._exprArgCache[ lookup ] = (value[0],value[1].copy()) | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in _parseNoCache(self, instring, loc, doActions, callPreParse) | |
| 988 try: | |
| --> 989 loc,tokens = self.parseImpl( instring, preloc, doActions ) | |
| 990 except IndexError: | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in parseImpl(self, instring, loc, doActions) | |
| 2360 # pre-parsed the string as part of our And pre-parsing | |
| -> 2361 loc, resultlist = self.exprs[0]._parse( instring, loc, doActions, callPreParse=False ) | |
| 2362 errorStop = False | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in _parseCache(self, instring, loc, doActions, callPreParse) | |
| 1045 try: | |
| -> 1046 value = self._parseNoCache( instring, loc, doActions, callPreParse ) | |
| 1047 ParserElement._exprArgCache[ lookup ] = (value[0],value[1].copy()) | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in _parseNoCache(self, instring, loc, doActions, callPreParse) | |
| 988 try: | |
| --> 989 loc,tokens = self.parseImpl( instring, preloc, doActions ) | |
| 990 except IndexError: | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/pyparsing.py in parseImpl(self, instring, loc, doActions) | |
| 2373 pe.__traceback__ = None | |
| -> 2374 raise ParseSyntaxException(pe) | |
| 2375 except IndexError: | |
| ParseSyntaxException: Expected "\right" (at char 14), (line:1, col:15) | |
| During handling of the above exception, another exception occurred: | |
| ValueError Traceback (most recent call last) | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/IPython/core/formatters.py in __call__(self, obj) | |
| 328 pass | |
| 329 else: | |
| --> 330 return printer(obj) | |
| 331 # Finally look for special method names | |
| 332 method = _safe_get_formatter_method(obj, self.print_method) | |
| /Users/oliverlee/repos/sympy/sympy/interactive/printing.py in _print_latex_png(o) | |
| 125 if latex_mode != 'inline': | |
| 126 s = latex(o, mode='inline') | |
| --> 127 return _matplotlib_wrapper(s) | |
| 128 | |
| 129 def _print_latex_matplotlib(o): | |
| /Users/oliverlee/repos/sympy/sympy/interactive/printing.py in _matplotlib_wrapper(o) | |
| 88 o = o.replace(r'\operatorname', '') | |
| 89 o = o.replace(r'\overline', r'\bar') | |
| ---> 90 return latex_to_png(o) | |
| 91 | |
| 92 def _can_print_latex(o): | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/IPython/lib/latextools.py in latex_to_png(s, encode, backend, wrap) | |
| 85 else: | |
| 86 raise ValueError('No such backend {0}'.format(backend)) | |
| ---> 87 bin_data = f(s, wrap) | |
| 88 if encode and bin_data: | |
| 89 bin_data = encodestring(bin_data) | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/IPython/lib/latextools.py in latex_to_png_mpl(s, wrap) | |
| 104 mt = mathtext.MathTextParser('bitmap') | |
| 105 f = BytesIO() | |
| --> 106 mt.to_png(f, s, fontsize=12) | |
| 107 return f.getvalue() | |
| 108 | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/matplotlib/mathtext.py in to_png(self, filename, texstr, color, dpi, fontsize) | |
| 3092 image in pixels. | |
| 3093 """ | |
| -> 3094 rgba, depth = self.to_rgba(texstr, color=color, dpi=dpi, fontsize=fontsize) | |
| 3095 numrows, numcols, tmp = rgba.shape | |
| 3096 _png.write_png(rgba.tostring(), numcols, numrows, filename) | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/matplotlib/mathtext.py in to_rgba(self, texstr, color, dpi, fontsize) | |
| 3057 image in pixels. | |
| 3058 """ | |
| -> 3059 x, depth = self.to_mask(texstr, dpi=dpi, fontsize=fontsize) | |
| 3060 | |
| 3061 r, g, b = mcolors.colorConverter.to_rgb(color) | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/matplotlib/mathtext.py in to_mask(self, texstr, dpi, fontsize) | |
| 3030 assert(self._output=="bitmap") | |
| 3031 prop = FontProperties(size=fontsize) | |
| -> 3032 ftimage, depth = self.parse(texstr, dpi=dpi, prop=prop) | |
| 3033 | |
| 3034 x = ftimage.as_array() | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/matplotlib/mathtext.py in parse(self, s, dpi, prop) | |
| 3003 self.__class__._parser = Parser() | |
| 3004 | |
| -> 3005 box = self._parser.parse(s, font_output, fontsize, dpi) | |
| 3006 font_output.set_canvas_size(box.width, box.height, box.depth) | |
| 3007 result = font_output.get_results(box) | |
| /Users/oliverlee/miniconda3/envs/dev/lib/python3.4/site-packages/matplotlib/mathtext.py in parse(self, s, fonts_object, fontsize, dpi) | |
| 2337 err.line, | |
| 2338 " " * (err.column - 1) + "^", | |
| -> 2339 six.text_type(err)])) | |
| 2340 self._state_stack = None | |
| 2341 self._em_width_cache = {} | |
| ValueError: | |
| \left ( \left[\begin{smallmatrix}- c v + g m - k x\end{smallmatrix}\right], \quad \left[\begin{smallmatrix}- m \dot{v}\end{smallmatrix}\right]\right ) | |
| ^ | |
| Expected "\right" (at char 14), (line:1, col:15) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment