Implementing Sage on Website
Here is what I would like to do; please let me know what might be the best way/programs to use to do it:
*Write Python code, involving Sage commands/functions
*Have a website where user input is taken, and the code is run
*The output of the Python code is not to be displayed exactly; rather, the output of the Python code will be code of a TeX source file.
*The website should then display the output of that TeX source (either as an image or pdf, but in the webpage -- not something to be downloaded by the user).
Any help greatly appreciated (specifically with the best way to implement the code in the website, and also if anyone knows a good way to do the 4th *)!