Skip to content

Comment on Python in Visual Studio Code – April 2019 Releaseparent

Comments

I run PyCharm using my docker-compose environment, which works great. A co-worker said he was able to get VSCode working with docker-compose, but the setup wasn't easy. He said something about having to attach to the running docker/python process.

Hi.

Can you elaborate a little more on how you use pycharm with docker-compose and what are the advantages? I am new to all this and I have been using Pycharm quite a lot lately but looking at people’s responses above it feels like I am missing something. Why would you need to connect remotely or where/why does docker fit into this? Isn’t is just an IDE that you install to code/debug?

Sorry in advance if these questions sound a little too primitive.

Thanks.

You can have pycharm on your machine but the actual python interpreter and the dependencies are in a docker container. This means that you don't 1) install python and dependencies needed for your project in your machine directly 2) reuse the docker container setup that is used for say ci and even production deployment while you are doing development.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.