3

I am working with a virtual machine through Vagrant, and would like my ST3 editor to recognize the python libraries that are installed in the virtual machine (not in my host). With this, I could use the ST3 plugins like autocompletion or linters, according to the libraries I'm actually using in the virtual machine, and not those installed in my computer (host).

I read this thread but I don't think it is the same problem we are facing here, because it's not a matter of interpreter I guess, but rather a problem of which path is used for looking for libraries. The problem would be the same if we consider virtual environments under the project root.

Community
  • 1
  • 1
tomasyany
  • 1,132
  • 3
  • 15
  • 32
  • Have you tried mounting the directory of libraries with something like sshfs? – Srdjan Grubor Dec 12 '14 at 20:07
  • I didn't find necessary, because the vagrant tool allows to have synced folders with the host machine. The connection to the virtual machine is through `ssh` and softwares like `PyCharm` actually let the use of a remote interpreter for python (and its installed libraries). I was guessing on ST3 something simliar could exist. – tomasyany Dec 12 '14 at 20:13
  • I finally did something like you propose. I explained it in a similar question http://stackoverflow.com/questions/11019120/define-remote-interpreter-on-remote-linux-machine-using-pydev-and-rse-server/27496846#27496846 – tomasyany Jan 14 '15 at 01:51

1 Answers1

1

Yes it can, through some plugins. For instance, the anaconda plugin for sublime text can do this through a project file setting. I believe the same can be done for REPLs by pointing your project's python_interpreter_path to a remote interpreter through ssh, although I haven't tried this personally.

avendael
  • 2,459
  • 5
  • 26
  • 30