In vscode, we can install the python extension, then select the interpreter which we want, like python in the conda environment.
So we can use "shift" "enter" key for running the code line by line in the terminal. For managing different virtual environment, using docker container is a better way.
If I already install the docker, and pull the python image. How to select the interpreter which is created in the docker container? Not just remote to the docker container.
CodePudding user response:
inside your devcontainer.json
file that vscode created you have the image
key and its value is the route to the image, if you want to use to change the python version you can do so there or using the quick instructions in vscode docs here
CodePudding user response:
I think it's impossible, I am afraid you must remote to the docker container.
I really can't imagine out you taking a python interpreter in Linux to work on windows directly.