importmagic.el icon indicating copy to clipboard operation
importmagic.el copied to clipboard

Use a remote python environment for tramp files?

Open tshu-w opened this issue 3 years ago • 2 comments

It would be much appreciated if this support use a remote python environment for tramp files

tshu-w avatar Oct 15 '20 10:10 tshu-w

Thanks for the request @tshu-w! This brings up interesting questions, for example, how do we discover whether the remote tramp host has python and the importmagic dependencies installed? Do you know how any other packages handle this?

ryanprior avatar Oct 16 '20 04:10 ryanprior

For discovering whether a remote tramp host has python, we can just use (executable-find "python" t)(t for remote). However, I don't know how to start a server on remote and communicate with epc. lsp-mode can do that but its code is too complicated for me.

tshu-w avatar Oct 16 '20 05:10 tshu-w