Closed ty-elastic closed 4 months ago
interestingly, if I set python.defaultInterpreterPath
to something nonsense like /workspace/blah/.venv/bin/python3
I get a failure message when I open the notebook.
yet with it set properly, I get
and then
also weird, when I set python.defaultInterpreterPath
to something nonsense like /workspace/blah/.venv/bin/python3
, I get the error about an invalid interpreter, and then when I go to select a python environment I see this:
(note the "Use Python from..." line).. which doesn't show up when I set it to a valid interpreter.
ah, that's interesting. if i just create a standard python file and run it, it works... its like the jupyter extension doesn't respect python.defaultInterpreterPath
?
haha. my fault. this is a known issue, unrelated to code-server, of course ;-).
Is there an existing issue for this?
OS/Web Information
code-server --version
: 4.22.0Steps to Reproduce
mkdir /workspace cd /workspace python3 -m venv .venv source .venv/bin/activate
pip install jupyter
code-server --install-extension ms-toolsai.jupyter --force --user-data-dir /user-data code-server --install-extension ms-python.python --force --user-data-dir /user-data
cat > /workspace/workspace.code-workspace <<EOL { "folders": [ { "path": "/workspace" } ], "settings": { "python.venvPath" : ["/workspace"], "python.defaultInterpreterPath": "/workspace/.venv/bin/python3" } } EOL
cat > /user-data/User/settings.json <<EOL { "python.venvPath" : ["/workspace"], "python.defaultInterpreterPath": "/workspace/.venv/bin/python3" } EOL
cat > /user-data/Machine/settings.json <<EOL { "python.venvPath" : ["/workspace"], "python.defaultInterpreterPath": "/workspace/.venv/bin/python3" } EOL
cat > /workspace/.vscode/settings.json <<EOL { "python.venvPath" : ["/workspace"], "python.defaultInterpreterPath": "/workspace/.venv/bin/python3" } EOL