r/Python • • Aug 26 '18

Remote Python & IDE workflow?

Hi! I'm looking for a way to use a remote Python interpreter (in my case it's a docker container on another machine) with an IDE like Pycharm or VS Code. In principle, it seems possible using just pycharm "remote interpreter" feature, althrough it requires SSH access into that container which I would prefer not to install if possible. Another major piece I have no idea how to make working is plots. I don't need interactive plots, just jupyter-style static ones will work. This sounds like a quite common usecase, but I couldn't find any help on how to set it up. For now I use jupyterlab running in that docker container, but really miss autocomplete and other stuff offered by IDEs. Any pointers welcome!

1 Upvotes

32 comments sorted by

View all comments

Show parent comment

2

u/[deleted] Aug 26 '18

If you have vim access on the remote machine sufficient it to integrate with a debugger, you likely have an SSH connection to use it over, and then his pycharm remote functions will work?

2

u/[deleted] Aug 26 '18

No. Docker implements its own half-arsed version of remote shell access (a.k.a. docker exec). You can use that to run the interpreter / debug / profile etc. But you don't need to run SSH.

1

u/[deleted] Aug 26 '18

Everyday I learn more about problems with docker