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 26 '18
Installing SSH in Docker containers is usually frowned upon. Of course, there's nothing criminal about it, if you are doing it for your personal project, but it would be quite a hassle, if you are doing it in a company setting.
Furthermore, Docker doesn't play well with
init.d,systemdand such. This is while services like SSH would normally be run by these programs. This means, that you would have to also write some sort of a wrapper (not really complex) for restarting SSH server each time you connect or disconnect.PS. Yes, I stand by what I said: JetBrains devs. don't develop programs for experienced / knowledgeable programmers. Their audience is inexperienced programmers, or folks for whom programming is secondary to their main profession (eg. scientists). There's nothing wrong with it from a commercial point of view: there's a lot more of that kind of users. But, it's something to keep in mind when selecting your tools.