Live data from Hacker News

Python in Visual Studio Code – April 2019 Release

devblogs.microsoft.com

41–42 of 42 posts

Re: Python in Visual Studio Code – April 2019 Release

#41
post #4

Earlier quoted context omitted.

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 questi…

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.

Re: Python in Visual Studio Code – April 2019 Release

#42
post #14

Earlier quoted context omitted.

Why not think of the problem from the other end? Instead of running vscode on the server, run it locally and use one of the SSH/SFTP plugins (e.g. [1] [2]) to sync the code with the server. [1] https://marketplace.visualstudio.com/items?itemName=liximomo... [2] https://marketplace.visualstudio.com/items?itemName=Kelvin.v...

I tried that, and it seems to lose some of the capabilities you get otherwise, like issuing remote commands to build. I'll take another look, though.

You could try to mount it locally with sshfs, it should work like with regular files.
Post reply on HN