Using LateX in Webapp

I want to use LateX in a web application by calling "latex" or "pdflatex" as a subprocess. This is working fine locally, but obviously latex is not available on the production servers. Any idea how I can use it in production?

Hmm, that should work -- we do, at least, have the latex command installed. What error do you get when you try to use it?

Yes, it does. My fault: I thought that opens a process in the directory where the calling module is contained, but it opens a process with the home directory as working directory. So it couldn't find my files with relative paths. Thanks nonetheless!

Ah, glad you were able to work it out!

Sorry, I am new here. How do you call latex in pythonanywhere? is there any documentation, tutorial, manual?