Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set up remote development in Eclipse for Python? (the "remote" part)

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:

  • a working copy of Eclipse with PyDEV
  • access to my remote files via sftp from within Eclipse

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!

like image 690
WoJ Avatar asked Apr 19 '12 08:04

WoJ


1 Answers

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.

like image 129
Fabio Zadrozny Avatar answered Nov 12 '22 02:11

Fabio Zadrozny