Hi.
I'm working on a big math problem. Sympy is saving my butt. Many thanks for this excellent tool. Open source rules !
What is the best (gui) environment to run sympy in ?
I love seeing equations formatted in Latex so that I can be sure the code I am writing in python is matching what I want the equation to be. It's also great to copy and paste Latex equations into my documentation, rather than a line of python.
I've been using the Jupyter notebook, but I don't usually use an interactive shell. I find Jupyter notebook to be kind of clumsy.
I develop in Fedora, so I am familiar with Spyder, Eclipse, Kwrite, Konsole, etc. I prefer to write code and run it. If I do that, how do I force sympy to output symbols in Latext (to a console) ?
Also, if I run this code in Jupyter, it outputs the latext equation for width in Latex.
width = r*cos(theta)*sin(phi)
width
But if I run this code in Jupyter cell, it only outputs phi, not width
width = r*cos(theta)*sin(phi)
width
phi = symbols('phi')
phi
Why ?
And if I run print(latex(width)) it will output "width" in Latex, not the equation that is assigned to width.
How do I get sympy to output the equation of width in Latex ?
Better yet, how do I get sympy to output "width =... equation..." in Latex ?
Thank you.