r/Python • u/aplavin • 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!
View all comments
Show parent comment
1
u/[deleted] Aug 29 '18
Alright, in that case, the easiest way of handling would be to set up SFTP deployment to transfer the files from the IDE to the Docker host. In turn, use a volume to get these files into the container.
You can configure SFTP deployment in Tools | Deployment. After this everything should work.
Let me know how things go!