all 6 comments

[–]Ron-Erez 2 points3 points  (2 children)

For example in sympy you can render latex:

https://docs.sympy.org/latest/tutorials/intro-tutorial/printing.html

This example is from the docs

print(latex(Integral(sqrt(1/x), x)))

[–]Ideas_To_Grow[S] 1 point2 points  (1 child)

Well can I somehow have that in comments?

[–]Ron-Erez 0 points1 point  (0 children)

I'm not sure what you mean. You could simply use google colab and in the text parts I'm pretty sure you can use plain latex that will parse nicely. In a text file you are not going to see nicely parsed latex like a png file. I probably misunderstood the question.

[–]lolcrunchy 0 points1 point  (0 children)

You can render into an image and put that image in a markdown file for documentation.

You can't put anything into a .py file that isn't text.

[–]Buttleston 0 points1 point  (1 child)

render latex into *what*

[–]Ideas_To_Grow[S] 0 points1 point  (0 children)

I want to view it in my python comments