VsCode Remote Debugging, change pythonpath to point to docker container's python interpreter

Multi tool use
up vote
0
down vote
favorite
I currently have a tensorflow-gpu docker container fully built. I have a volume from my host's workspace ($PWD
) to /workspace
inside the docker container.
I can successfully remote debug the python scripts inside my workspace/docker's workspace folder, but as expected, my pylint and intellisense don't work inside vscode, as the pythonPath
is set to my local python interpreter, and the pylint init-hooks are using my local python environment to figure out if it should squiggly line something.
How do I change my local vscode's pythonpath to point to the python interpreter on docker rather than on the host? I want pylint to be calibrated to the docker's environment rather than the local host's environment.
python docker visual-studio-code remote-debugging pylint
New contributor
Tristan Berry is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
up vote
0
down vote
favorite
I currently have a tensorflow-gpu docker container fully built. I have a volume from my host's workspace ($PWD
) to /workspace
inside the docker container.
I can successfully remote debug the python scripts inside my workspace/docker's workspace folder, but as expected, my pylint and intellisense don't work inside vscode, as the pythonPath
is set to my local python interpreter, and the pylint init-hooks are using my local python environment to figure out if it should squiggly line something.
How do I change my local vscode's pythonpath to point to the python interpreter on docker rather than on the host? I want pylint to be calibrated to the docker's environment rather than the local host's environment.
python docker visual-studio-code remote-debugging pylint
New contributor
Tristan Berry is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I currently have a tensorflow-gpu docker container fully built. I have a volume from my host's workspace ($PWD
) to /workspace
inside the docker container.
I can successfully remote debug the python scripts inside my workspace/docker's workspace folder, but as expected, my pylint and intellisense don't work inside vscode, as the pythonPath
is set to my local python interpreter, and the pylint init-hooks are using my local python environment to figure out if it should squiggly line something.
How do I change my local vscode's pythonpath to point to the python interpreter on docker rather than on the host? I want pylint to be calibrated to the docker's environment rather than the local host's environment.
python docker visual-studio-code remote-debugging pylint
New contributor
Tristan Berry is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I currently have a tensorflow-gpu docker container fully built. I have a volume from my host's workspace ($PWD
) to /workspace
inside the docker container.
I can successfully remote debug the python scripts inside my workspace/docker's workspace folder, but as expected, my pylint and intellisense don't work inside vscode, as the pythonPath
is set to my local python interpreter, and the pylint init-hooks are using my local python environment to figure out if it should squiggly line something.
How do I change my local vscode's pythonpath to point to the python interpreter on docker rather than on the host? I want pylint to be calibrated to the docker's environment rather than the local host's environment.
python docker visual-studio-code remote-debugging pylint
python docker visual-studio-code remote-debugging pylint
New contributor
Tristan Berry is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Tristan Berry is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 2 days ago
Joel
1,4425719
1,4425719
New contributor
Tristan Berry is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked Nov 7 at 6:24


Tristan Berry
31
31
New contributor
Tristan Berry is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Tristan Berry is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Tristan Berry is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
What you want is remote interpreter support which isn't supported yet. Please subscribe to this issue to know the status of this feature.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
What you want is remote interpreter support which isn't supported yet. Please subscribe to this issue to know the status of this feature.
add a comment |
up vote
0
down vote
accepted
What you want is remote interpreter support which isn't supported yet. Please subscribe to this issue to know the status of this feature.
add a comment |
up vote
0
down vote
accepted
up vote
0
down vote
accepted
What you want is remote interpreter support which isn't supported yet. Please subscribe to this issue to know the status of this feature.
What you want is remote interpreter support which isn't supported yet. Please subscribe to this issue to know the status of this feature.
answered Nov 7 at 19:30
Brett Cannon
1,4431119
1,4431119
add a comment |
add a comment |
Tristan Berry is a new contributor. Be nice, and check out our Code of Conduct.
Tristan Berry is a new contributor. Be nice, and check out our Code of Conduct.
Tristan Berry is a new contributor. Be nice, and check out our Code of Conduct.
Tristan Berry is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53184499%2fvscode-remote-debugging-change-pythonpath-to-point-to-docker-containers-python%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
OxP6bt83MSg A3EL5vc6WExKVGdtdW6g,fTdWjDW,xmD5WON 0x KK2ujEHIioad bP,s