Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remote python libraries with Sublime Text 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.

like image 243
tomasyany Avatar asked May 17 '26 15:05

tomasyany


1 Answers

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.

like image 195
avendael Avatar answered May 20 '26 03:05

avendael



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!