Brian
Brian

Reputation: 2800

How to run a Python script remotely

We run many Python scripts for data processing tasks. We have a modeling computer that has been upgraded to provide the best performance for these tasks, but it is shared by many people that all need to run different scripts on it at the same time.

Is it possible for me to run a Python script remotely on that machine from my laptop while others are either directly logged into it or also remotely running a script?

Is SSH a possibility? I haven't ever run any scripts remotely aside from logging in via remote desktop. Ideally, I could start the Python script on that remote machine, but all the messages would be visible to me on my laptop. Does this sound doable?

EDIT:

I forgot to mention all machines are running Windows 7.

Upvotes: 0

Views: 7172

Answers (2)

derricw
derricw

Reputation: 7036

SSH does seem like it should meet your needs.

You could also consider setting up an iPython notebook server that everyone could use.

Its got nice parallel processing capabilities if you are doing some serious number crunching.

Upvotes: 0

kirelagin
kirelagin

Reputation: 13626

SSH is definitely the way to go and also have a look at Fabric.

Regarding your edit. You can use Fabric on Windows. And I think that using SSH on Windows will be a bit easier than dancing with their Powershell's remoting capabilities.

Upvotes: 1

Related Questions