Is there a way to send (python) code to a server to compile and run but display the results on the computer that sent them?
<p>I just bought a server and was wondering if there was a way to run the code remotely but store/display the results locally. For example, I write some code to display a graph, the positions on the graph are computed by the (remote) server, but the graph is displayed on the (local) tablet. </p>

<p>I would like to do this because the tablet I carry around with me on a day-to-day basis is very slow for computational physics simulations. I understand that I can setup some kind of communications protocol that allows the server to compute things and then sends the computations to my tablet for a script on my tablet to handle the data. However, I would like to avoid writing a possibly new set of communications scripts (to handle different formats of data) every single time I run a new simulation.</p>

<p>With ssh, you can do this with a python script or a shell script:</p>

<p><code>ssh machine_name "python" &lt; ~/script/path/script.py</code></p>

<p>REF:
<a href="http://unix.stackexchange.com/questions/87405/how-can-i-execute-local-script-on-remote-machine-and-include-arguments">http://unix.stackexchange.com/questions/87405/how-can-i-execute-local-script-on-remote-machine-and-include-arguments</a></p>

python remote-access