I am new to Eclipse and I would like to set it up for remote development in Python. I use Eclipse on Win7, the sources being on a Linux machine (and expected to run from there).
I have used excellent guides to set up Eclipse for remote dev and PyDEV and I now have:
What I am missing now is the ability to actually run the files remotely, ie. I do not know the magic to make it so that when I execute the files from Eclipse they are run through /usr/bin/python on the Linux box with the output nicely managed by Eclipse (at least this is the dream part :)).
Thanks!
I must say I haven't tested this, but from what I know, you should be able to launch the file remotely as explained in: https://serverfault.com/questions/36419/using-ssh-to-remotely-start-a-process right?
Now, provided you have that step working, you could either create a python script (i.e.: launch_my_project_remotely.py) and make it call that command line or create an external launcher (run > external tools).
Note that you can associate a keybinding to 'run last launched external tool' in window > preferences > general > keys.
p.s.: note that you may also be interested in remote debugging in this case. For that see: http://pydev.org/manual_adv_remote_debugger.html
p.s.2.: personally, I don't really like a setup like this and prefer being totally remote (i.e.: http://nomachine.com/) or just doing all locally and having a http://jenkins-ci.org/ server to make continuous integration of things I commit in different environments.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With