So my friend is writing some python code for me to do some calculations for me. Is there a way that I can get the output of these calculations to be automatically translated into LaTeX formatting?
Nothing too complicated, the output is just a bunch of rational functions. I'd like to be able to get these put into LaTeX coding automatic. Is there an easy way to go about this?

verbatimfor example (assuming the python output is just plain text) – David Carlisle Sep 12 '20 at 18:36$\frac{p(x,y)}{q(x,y}}$from something produced by your python you need to show the text that is being produced. Currently your question just says "can latex typeset some expressions, give an unspecified input?" there is no answer that can be given. – David Carlisle Sep 12 '20 at 21:22class rationalfunction, in which case, why can't you justdef totex(self)? – Teepeemm Sep 13 '20 at 01:14