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
Can’t get latex render via sympy to work #1119
Comments
Checkout this example: https://nteract.gitbooks.io/hydrogen/docs/Usage/Examples.html#latex |
Thank you very much @lgeiger ! somehow pprints messes things up. Now the latex isn't being rendered, but python understands it's latex.. I tried updating miktex and installed mathjax.. No luck :/ |
You won't need miktex or separately install mathjax. This won't have any effect. What is the output of the example run in a new file? import sympy as sp
sp.init_printing(use_latex='mathjax')
x, y, z = sp.symbols('x y z')
f = sp.sin(x * y) + sp.cos(y * z)
sp.integrate(f, x) |
Thank you @lgeiger i really appreciate your suggestions. This is what i get, same error in a brand new file: |
Which versions of Atom, Hydrogen and sympy are you using? |
Atom version: Hydrogen version: Sympy version: |
Do you have any ideas i could try @lgeiger? I would very much appreciate your tips |
Does it work in jupyter notebook? Could you post a screenshot of the Developer console as shown in our debugging guide |
Thank you @lgeiger. And running this in jupyter notebook is no problem: strangely i tried installing everything on another computer, and it worked like a charm |
ah i found the error! @lgeiger Thank you very much for your help. Checking error messages as you suggested, and seeing the kite package throwing many errors, made me disable all packages too see if it made a difference :) ! |
Glad it's working. If we go with nteract/nteract#2115 we'll be able to support latex rendering without modifying the global HTML header. |
@renec112 good discovery, my tests suggest that it also affects hydrogen |
I can’t get latex output from the sympy package. I use the command init_printing(), and i tried updating all my packages (with anaconda). I also have mathjax and matplotlib installed.
I get this unicode output:
But i’m looking to get rid of the Unicode output and get some clean latex like so:
Anyone know what I could try? Would love your input
The text was updated successfully, but these errors were encountered: