Repository navigation
Cannot select interpreter in .py files when using "Select at workspace level" #21220
Description
Activity
Please provide the logs as mentioned in the issue template. Attempt to change interpreter before providing the logs, use
Python: Select Interpretercomamnd.Output for
Pythonin theOutputpanel (View→Output, change the drop-down the upper-right of theOutputpanel toPython)XXX- addedtriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
on May 11, 2023 - addedinfo-neededIssue requires more information from posterIssue requires more information from poster
on May 11, 2023 I got similar issue that cannot select interpreter successfully.
This is my Python Output
2023-05-25 00:25:44.801 [info] Experiment 'pythonaa' is active 2023-05-25 00:25:44.801 [info] Experiment 'pythonPromptNewFormatterExt' is active 2023-05-25 00:25:44.801 [info] Experiment 'pythonPromptNewToolsExt' is active 2023-05-25 00:25:44.803 [info] Test server listening. 2023-05-25 00:25:44.807 [info] > conda info --json 2023-05-25 00:25:44.811 [info] Python interpreter path: ~/.pyenv/versions/3.9.13/bin/python3.9 2023-05-25 00:25:44.883 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS 2023-05-25 00:25:44.883 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS 2023-05-25 00:25:44.883 [info] Found: /usr/bin/python3 --> /usr/bin/python3 2023-05-25 00:25:44.896 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS 2023-05-25 00:25:44.896 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS 2023-05-25 00:25:44.896 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS 2023-05-25 00:25:44.897 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS 2023-05-25 00:25:44.897 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS 2023-05-25 00:25:44.897 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS 2023-05-25 00:25:44.994 [info] > ~/.pyenv/versions/3.9.13/bin/python -I ~/.vscode/extensions/ms-python.python-2023.8.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.8.0/pythonFiles/interpreterInfo.py 2023-05-25 00:25:44.998 [info] Found: /opt/homebrew/bin/python3.10 --> /opt/homebrew/Cellar/[email protected]/3.10.10_1/Frameworks/Python.framework/Versions/3.10/bin/python3.10 2023-05-25 00:25:45.010 [info] > /usr/bin/python3 -I ~/.vscode/extensions/ms-python.python-2023.8.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.8.0/pythonFiles/interpreterInfo.py 2023-05-25 00:25:45.044 [info] > /opt/homebrew/bin/python3.10 -I ~/.vscode/extensions/ms-python.python-2023.8.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.8.0/pythonFiles/interpreterInfo.py 2023-05-25 00:25:45.159 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS 2023-05-25 00:25:45.159 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS 2023-05-25 00:25:45.417 [info] Starting Pylance language server.I created a temporary virtual environment by
$ virtualenv /tmp/testenv, open Visual Studio Code, then choose the interpreter/tmp/testenv/bin/python3.9(this is a symbolic link to~/.pyenv/versions/3.9.13/bin/python)Nothing happened after choosing interpreter. And no new information was appended to Output.
Moreover, after I chose the interpreter under
/tmp/testenvand clickRun/Run without Debugging, it doesn't run at all. Just one new line was added to Python Output. But the python script does not run.2023-05-25 00:32:41.574 [info] DAP Server launched with command: /Users/walkingice/.pyenv/versions/3.9.13/bin/python3.9 /Users/walkingice/.vscode/extensions/ms-python.python-2023.8.0/pythonFiles/lib/python/debugpy/adapterIt seems something crashed, because I can see a process
ReportCrashwas running in background, but the process never ends until I completely close Visual Studio Code.- removedinfo-neededIssue requires more information from posterIssue requires more information from poster
on May 24, 2023 Sorry for the delay. As with Julian Chu (@walkingice), running
Python: Select Interpreterdidn't produce any additional logs.Full output:
2023-05-24 11:08:31.988 [info] Experiment 'pythonaa' is active 2023-05-24 11:08:31.988 [info] Experiment 'pythonPromptNewFormatterExt' is active 2023-05-24 11:08:31.988 [info] Experiment 'pythonPromptNewToolsExt' is active 2023-05-24 11:08:31.988 [info] Test server listening. 2023-05-24 11:08:31.988 [info] Python interpreter path: ~/mamba/envs/ml/bin/python 2023-05-24 11:08:32.846 [info] Starting Pylance language server. 2023-05-24 11:08:32.854 [error] Active interpreter type is detected as Unknown {"id":"/home/glinka/mamba/envs/ml/bin/python","sysPrefix":"/home/glinka/mamba/envs/ml","envType":"Unknown","envName":"","envPath":"/home/glinka/mamba/envs/ml","path":"/home/glinka/mamba/envs/ml/bin/python","architecture":3,"sysVersion":"3.10.10 | packaged by conda-forge | (main, Mar 24 2023, 20:08:06) [GCC 11.3.0]","version":{"raw":"3.10.10","major":3,"minor":10,"patch":10,"build":[],"prerelease":["final","0"]},"displayName":"Python 3.10.10 64-bit","detailedDisplayName":"Python 3.10.10 64-bit"} 2023-05-24 11:09:03.297 [info] > conda info --json 2023-05-24 11:09:03.318 [info] > ~/mamba/envs/ml/bin/python -m yapf "--style={based_on_style: google, indent_width: 2}" --diff ./vertex_ai_training_job/trainer/task.py.ca290d93db33c24c4c5885e2d51a283e.tmp 2023-05-24 11:09:03.318 [info] cwd: ./vertex_ai_training_job/trainer 2023-05-24 11:09:03.360 [info] > ~/mamba/envs/ml/bin/python -c "import yapf" 2023-05-24 11:09:03.528 [info] > . ~/mamba/envs/ml/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode-server/extensions/ms-python.python-2023.8.0/pythonFiles/printEnvVariables.py 2023-05-24 11:09:03.528 [info] shell: bash 2023-05-24 11:09:03.845 [info] > ~/mamba/envs/ml/bin/python -c "import yapf" 2023-05-24 11:09:03.873 [error] Please install 'yapf' into your environment. If you don't want to use it you can turn it off or use another formatter in the settings. 2023-05-24 11:09:03.873 [error] Formatting with yapf failed: Error: Module 'yapf' not installed. 2023-05-24 11:09:43.114 [info] Found: /bin/python3 --> /bin/python3.10 2023-05-24 11:09:43.114 [info] Found: /bin/python3.10 --> /bin/python3.10 2023-05-24 11:09:43.123 [info] Found: /usr/bin/python3 --> /usr/bin/python3.10 2023-05-24 11:09:43.123 [info] Found: /usr/bin/python3.10 --> /usr/bin/python3.10 2023-05-24 11:09:43.149 [info] > /bin/python3 -I ~/.vscode-server/extensions/ms-python.python-2023.8.0/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.8.0/pythonFiles/interpreterInfo.py 2023-05-24 11:09:43.165 [info] > /usr/bin/python3 -I ~/.vscode-server/extensions/ms-python.python-2023.8.0/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.8.0/pythonFiles/interpreterInfo.pyTry the pre-release version of the Python extension:
In case the issue is still there, please provide the debug logs which can help diagnose the issue:
-
Run
Developer: Set log levelcommand -
Select
Python-> SelectTrace -
Run
Developer: Reload Windowcommand -
Provide the output:
Output for
Pythonin theOutputpanel (View→Output, change the drop-down the upper-right of theOutputpanel toPython)XXX
-
- addedinfo-neededIssue requires more information from posterIssue requires more information from poster
on Jul 21, 2023 Unfortunately pre-release (
v2023.13.12051535) has not solved the problem. I'm providing the output below but there's literally nothing logged at the trace level when I select a different interpreter.2023-07-24 16:49:17.369 [info] Experiment 'pythonPromptNewFormatterExt' is active 2023-07-24 16:49:17.369 [info] Experiment 'pythonPromptNewToolsExt' is active 2023-07-24 16:49:17.369 [info] Experiment 'pythonSurveyNotificationcf' is active 2023-07-24 16:49:17.369 [info] Experiment 'pythonTestAdapter' is active 2023-07-24 16:49:17.369 [info] Test server listening. 2023-07-24 16:49:17.370 [info] > conda info --json 2023-07-24 16:49:17.370 [info] Python interpreter path: ~/mamba/bin/python 2023-07-24 16:49:17.370 [info] Found: /bin/python3 --> /bin/python3.10 2023-07-24 16:49:17.370 [info] Found: /bin/python3.10 --> /bin/python3.10 2023-07-24 16:49:17.370 [info] Found: /usr/bin/python3 --> /usr/bin/python3.10 2023-07-24 16:49:17.370 [info] Found: /usr/bin/python3.10 --> /usr/bin/python3.10 2023-07-24 16:49:17.370 [info] Found: /home/workspace/mamba/bin/python --> /home/workspace/mamba/bin/python3.10 2023-07-24 16:49:17.370 [info] Found: /home/workspace/mamba/bin/python3 --> /home/workspace/mamba/bin/python3.10 2023-07-24 16:49:17.370 [info] Found: /home/workspace/mamba/bin/python3.1 --> /home/workspace/mamba/bin/python3.10 2023-07-24 16:49:17.370 [info] Found: /home/workspace/mamba/bin/python3.10 --> /home/workspace/mamba/bin/python3.10 2023-07-24 16:49:17.370 [info] > /bin/python3 -I ~/.vscode-server/extensions/ms-python.python-2023.13.12051535/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.13.12051535/pythonFiles/interpreterInfo.py 2023-07-24 16:49:17.564 [info] > /usr/bin/python3 -I ~/.vscode-server/extensions/ms-python.python-2023.13.12051535/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.13.12051535/pythonFiles/interpreterInfo.py 2023-07-24 16:49:18.094 [info] > conda run -n base --no-capture-output python ~/.vscode-server/extensions/ms-python.python-2023.13.12051535/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.13.12051535/pythonFiles/printEnvVariables.py 2023-07-24 16:49:18.095 [info] shell: bash 2023-07-24 16:49:18.115 [info] > ~/mamba/bin/python -I ~/.vscode-server/extensions/ms-python.python-2023.13.12051535/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.13.12051535/pythonFiles/interpreterInfo.py 2023-07-24 16:49:18.210 [info] > ~/mamba/envs/default/bin/python -I ~/.vscode-server/extensions/ms-python.python-2023.13.12051535/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.13.12051535/pythonFiles/interpreterInfo.py 2023-07-24 16:49:18.227 [info] > ~/mamba/envs/pcp/bin/python -I ~/.vscode-server/extensions/ms-python.python-2023.13.12051535/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.13.12051535/pythonFiles/interpreterInfo.py 2023-07-24 16:49:19.858 [info] Starting Pylance language server.- removedinfo-neededIssue requires more information from posterIssue requires more information from poster
on Jul 24, 2023 That doesn't seem like the debug logs, can you demonstrate the logging level is set to trace for the Python extension? Try running
Developer: Set log levelcommand and take a screenshot.- addedinfo-neededIssue requires more information from posterIssue requires more information from poster
on Jul 25, 2023 You're right, I did select the Python trace logs but it didn't persist after reloading the window. Setting trace logging for everything worked though, here's the final few log lines (including an attempt to switch to the interpreter in the
defaultmamba env), let me know if you need more:2023-07-25 07:22:20.537 [debug] Searching for pyenv environments 2023-07-25 07:22:20.539 [debug] Searching for conda environments using conda 2023-07-25 07:22:20.539 [debug] Cached data exists KeyPrefix=Cache_Method_Output_S.getEnvList-Args= 2023-07-25 07:22:20.539 [debug] Couldn't locate the state binary. 2023-07-25 07:22:20.540 [debug] Looking into conda env for executable: {"prefix":"/home/workspace/mamba","name":"base"} 2023-07-25 07:22:20.542 [debug] Finished searching for custom virtual envs 2023-07-25 07:22:20.542 [debug] Searching for workspace virtual envs in: /home/workspace/workspace-cc 2023-07-25 07:22:20.542 [debug] Finished searching for poetry envs 2023-07-25 07:22:20.543 [debug] Found executable within conda env {"prefix":"/home/workspace/mamba","name":"base"} 2023-07-25 07:22:20.543 [debug] Found conda executable: /home/workspace/mamba/bin/python 2023-07-25 07:22:20.543 [debug] Looking into conda env for executable: {"prefix":"/home/workspace/mamba/envs/default","name":"default"} 2023-07-25 07:22:20.544 [debug] Finished searching for global virtual envs 2023-07-25 07:22:20.546 [debug] Attempting to resolve symbolic link: /bin/python3 2023-07-25 07:22:20.546 [debug] Found executable within conda env {"prefix":"/home/workspace/mamba/envs/default","name":"default"} 2023-07-25 07:22:20.546 [debug] Found conda executable: /home/workspace/mamba/envs/default/bin/python 2023-07-25 07:22:20.547 [info] Found: /bin/python3 --> /bin/python3.10 2023-07-25 07:22:20.547 [debug] Attempting to resolve symbolic link: /bin/python3.10 2023-07-25 07:22:20.547 [info] Found: /bin/python3.10 --> /bin/python3.10 2023-07-25 07:22:20.558 [debug] Looking into conda env for executable: {"prefix":"/home/workspace/mamba/envs/ml","name":"ml"} 2023-07-25 07:22:20.559 [debug] Found executable within conda env {"prefix":"/home/workspace/mamba/envs/ml","name":"ml"} 2023-07-25 07:22:20.559 [debug] Found conda executable: /home/workspace/mamba/envs/ml/bin/python 2023-07-25 07:22:20.560 [debug] Attempting to resolve symbolic link: /usr/bin/python3 2023-07-25 07:22:20.572 [info] Found: /usr/bin/python3 --> /usr/bin/python3.10 2023-07-25 07:22:20.572 [debug] Attempting to resolve symbolic link: /usr/bin/python3.10 2023-07-25 07:22:20.574 [debug] Extension ms-toolsai.jupyter accessed known with args: undefined 2023-07-25 07:22:20.575 [info] Found: /usr/bin/python3.10 --> /usr/bin/python3.10 2023-07-25 07:22:20.578 [debug] Finished searching for conda environments 2023-07-25 07:22:20.581 [debug] Finished searching for workspace virtual envs 2023-07-25 07:22:20.586 [debug] Attempting to resolve symbolic link: /home/workspace/mamba/bin/python 2023-07-25 07:22:20.587 [info] Found: /home/workspace/mamba/bin/python --> /home/workspace/mamba/bin/python3.10 2023-07-25 07:22:20.587 [debug] Attempting to resolve symbolic link: /home/workspace/mamba/bin/python3 2023-07-25 07:22:20.587 [info] Found: /home/workspace/mamba/bin/python3 --> /home/workspace/mamba/bin/python3.10 2023-07-25 07:22:20.587 [debug] Attempting to resolve symbolic link: /home/workspace/mamba/bin/python3.1 2023-07-25 07:22:20.588 [info] Found: /home/workspace/mamba/bin/python3.1 --> /home/workspace/mamba/bin/python3.10 2023-07-25 07:22:20.588 [debug] Attempting to resolve symbolic link: /home/workspace/mamba/bin/python3.10 2023-07-25 07:22:20.588 [debug] Storage update failed for key PYTHON_ENV_INFO_CACHE retrying by resetting first 2023-07-25 07:22:20.588 [debug] Storage update failed for key PYTHON_ENV_INFO_CACHE retrying by resetting first 2023-07-25 07:22:20.588 [debug] Storage update failed for key PYTHON_ENV_INFO_CACHE retrying by resetting first 2023-07-25 07:22:20.589 [info] Found: /home/workspace/mamba/bin/python3.10 --> /home/workspace/mamba/bin/python3.10 2023-07-25 07:22:20.589 [debug] Found 3 python binaries in posix paths 2023-07-25 07:22:20.597 [debug] Extension ms-toolsai.jupyter accessed known with args: undefined 2023-07-25 07:22:20.599 [debug] Extension ms-toolsai.jupyter accessed getEnvironmentVariables with args: undefined 2023-07-25 07:22:20.603 [debug] Finished searching for interpreters in posix paths locator 2023-07-25 07:22:20.604 [debug] Finished with environment reducer 2023-07-25 07:22:20.606 [debug] Finished with environment resolver 2023-07-25 07:22:20.607 [debug] Environments added to cache [{"name":"","location":"","kind":"global-other","executable":{"filename":"/bin/python3","sysPrefix":"/usr","ctime":1688741069565,"mtime":1660819144000},"display":"Python 3.10.6 64-bit","version":{"major":3,"minor":10,"micro":6,"release":{"level":"final","serial":0},"sysVersion":"3.10.6 (main, May 29 2023, 11:10:38) [GCC 11.3.0]"},"arch":3,"distro":{"org":""},"source":["path env var"],"id":"/bin/python3","detailedDisplayName":"Python 3.10.6 64-bit"},{"name":"","location":"","kind":"global-other","executable":{"filename":"/usr/bin/python3","sysPrefix":"/usr","ctime":1688741069565,"mtime":1660819144000},"display":"Python 3.10.6 64-bit","version":{"major":3,"minor":10,"micro":6,"release":{"level":"final","serial":0},"sysVersion":"3.10.6 (main, May 29 2023, 11:10:38) [GCC 11.3.0]"},"arch":3,"distro":{"org":""},"source":["path env var"],"id":"/usr/bin/python3","detailedDisplayName":"Python 3.10.6 64-bit"},{"name":"base","location":"/home/workspace/mamba","kind":"virt-conda","executable":{"filename":"/home/workspace/mamba/bin/python","sysPrefix":"/home/workspace/mamba","ctime":1689090604806,"mtime":1687297516000},"display":"Python 3.10.10 ('base')","version":{"major":3,"minor":10,"micro":10,"release":{"level":"final","serial":0},"sysVersion":"3.10.10 | packaged by conda-forge | (main, Mar 24 2023, 20:08:06) [GCC 11.3.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":["path env var"],"type":"Conda","id":"/home/workspace/mamba/bin/python","detailedDisplayName":"Python 3.10.10 ('base': conda)"},{"name":"default","location":"/home/workspace/mamba/envs/default","kind":"virt-conda","executable":{"filename":"/home/workspace/mamba/envs/default/bin/python","sysPrefix":"/home/workspace/mamba/envs/default","ctime":1689090613363,"mtime":1687297593000},"display":"Python 3.9.16 ('default')","version":{"major":3,"minor":9,"micro":16,"release":{"level":"final","serial":0},"sysVersion":"3.9.16 | packaged by conda-forge | (main, Feb 1 2023, 21:39:03) \n[GCC 11.3.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":[],"type":"Conda","id":"/home/workspace/mamba/envs/default/bin/python","detailedDisplayName":"Python 3.9.16 ('default': conda)"},{"name":"ml","location":"/home/workspace/mamba/envs/ml","kind":"virt-conda","executable":{"filename":"/home/workspace/mamba/envs/ml/bin/python","sysPrefix":"/home/workspace/mamba/envs/ml","ctime":1689090892138,"mtime":1687297987000},"display":"Python 3.9.16 ('ml')","version":{"major":3,"minor":9,"micro":16,"release":{"level":"final","serial":0},"sysVersion":"3.9.16 | packaged by conda-forge | (main, Feb 1 2023, 21:39:03) \n[GCC 11.3.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":[],"type":"Conda","id":"/home/workspace/mamba/envs/ml/bin/python","detailedDisplayName":"Python 3.9.16 ('ml': conda)"}] 2023-07-25 07:22:20.612 [debug] Found cached env for /home/workspace/mamba/bin/python 2023-07-25 07:22:20.612 [debug] Resolved /home/workspace/mamba/bin/python from cache: {"name":"base","location":"/home/workspace/mamba","kind":"virt-conda","executable":{"filename":"/home/workspace/mamba/bin/python","sysPrefix":"/home/workspace/mamba","ctime":1689090604806,"mtime":1687297516000},"display":"Python 3.10.10 ('base')","version":{"major":3,"minor":10,"micro":10,"release":{"level":"final","serial":0},"sysVersion":"3.10.10 | packaged by conda-forge | (main, Mar 24 2023, 20:08:06) [GCC 11.3.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":["path env var"],"type":"Conda","id":"/home/workspace/mamba/bin/python","detailedDisplayName":"Python 3.10.10 ('base': conda)"} 2023-07-25 07:22:20.619 [debug] Needed to validate /bin/python3 with latest info 2023-07-25 07:22:20.620 [debug] Resolved /bin/python3 from cache: {"name":"","location":"","kind":"global-other","executable":{"filename":"/bin/python3","sysPrefix":"/usr","ctime":1688741069565,"mtime":1660819144000},"display":"Python 3.10.6 64-bit","version":{"major":3,"minor":10,"micro":6,"release":{"level":"final","serial":0},"sysVersion":"3.10.6 (main, May 29 2023, 11:10:38) [GCC 11.3.0]"},"arch":3,"distro":{"org":""},"source":["path env var"],"id":"/bin/python3","detailedDisplayName":"Python 3.10.6 64-bit"} 2023-07-25 07:22:20.625 [debug] Found cached env for /home/workspace/mamba/bin/python 2023-07-25 07:22:20.625 [debug] Resolved /home/workspace/mamba/bin/python from cache: {"name":"base","location":"/home/workspace/mamba","kind":"virt-conda","executable":{"filename":"/home/workspace/mamba/bin/python","sysPrefix":"/home/workspace/mamba","ctime":1689090604806,"mtime":1687297516000},"display":"Python 3.10.10 ('base')","version":{"major":3,"minor":10,"micro":10,"release":{"level":"final","serial":0},"sysVersion":"3.10.10 | packaged by conda-forge | (main, Mar 24 2023, 20:08:06) [GCC 11.3.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":["path env var"],"type":"Conda","id":"/home/workspace/mamba/bin/python","detailedDisplayName":"Python 3.10.10 ('base': conda)"} 2023-07-25 07:22:20.626 [debug] Needed to validate /usr/bin/python3 with latest info 2023-07-25 07:22:20.626 [debug] Resolved /usr/bin/python3 from cache: {"name":"","location":"","kind":"global-other","executable":{"filename":"/usr/bin/python3","sysPrefix":"/usr","ctime":1688741069565,"mtime":1660819144000},"display":"Python 3.10.6 64-bit","version":{"major":3,"minor":10,"micro":6,"release":{"level":"final","serial":0},"sysVersion":"3.10.6 (main, May 29 2023, 11:10:38) [GCC 11.3.0]"},"arch":3,"distro":{"org":""},"source":["path env var"],"id":"/usr/bin/python3","detailedDisplayName":"Python 3.10.6 64-bit"} 2023-07-25 07:22:20.627 [debug] Needed to validate /home/workspace/mamba/envs/default/bin/python with latest info 2023-07-25 07:22:20.628 [debug] Resolved /home/workspace/mamba/envs/default/bin/python from cache: {"name":"default","location":"/home/workspace/mamba/envs/default","kind":"virt-conda","executable":{"filename":"/home/workspace/mamba/envs/default/bin/python","sysPrefix":"/home/workspace/mamba/envs/default","ctime":1689090613363,"mtime":1687297593000},"display":"Python 3.9.16 ('default')","version":{"major":3,"minor":9,"micro":16,"release":{"level":"final","serial":0},"sysVersion":"3.9.16 | packaged by conda-forge | (main, Feb 1 2023, 21:39:03) \n[GCC 11.3.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":[],"type":"Conda","id":"/home/workspace/mamba/envs/default/bin/python","detailedDisplayName":"Python 3.9.16 ('default': conda)"} 2023-07-25 07:22:20.629 [debug] Needed to validate /home/workspace/mamba/envs/ml/bin/python with latest info 2023-07-25 07:22:20.629 [debug] Resolved /home/workspace/mamba/envs/ml/bin/python from cache: {"name":"ml","location":"/home/workspace/mamba/envs/ml","kind":"virt-conda","executable":{"filename":"/home/workspace/mamba/envs/ml/bin/python","sysPrefix":"/home/workspace/mamba/envs/ml","ctime":1689090892138,"mtime":1687297987000},"display":"Python 3.9.16 ('ml')","version":{"major":3,"minor":9,"micro":16,"release":{"level":"final","serial":0},"sysVersion":"3.9.16 | packaged by conda-forge | (main, Feb 1 2023, 21:39:03) \n[GCC 11.3.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":[],"type":"Conda","id":"/home/workspace/mamba/envs/ml/bin/python","detailedDisplayName":"Python 3.9.16 ('ml': conda)"} 2023-07-25 07:22:20.684 [debug] Extension ms-toolsai.jupyter accessed known with args: undefined 2023-07-25 07:22:20.695 [debug] Extension ms-toolsai.jupyter accessed known with args: undefined 2023-07-25 07:22:20.699 [debug] Extension ms-toolsai.jupyter accessed known with args: undefined 2023-07-25 07:22:20.782 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true 2023-07-25 07:22:20.782 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true 2023-07-25 07:22:20.782 [debug] Found cached env for /home/workspace/mamba/bin/python 2023-07-25 07:22:20.783 [debug] Found cached env for /home/workspace/mamba/bin/python 2023-07-25 07:22:20.783 [debug] Resolved /home/workspace/mamba/bin/python from cache: {"name":"base","location":"/home/workspace/mamba","kind":"virt-conda","executable":{"filename":"/home/workspace/mamba/bin/python","sysPrefix":"/home/workspace/mamba","ctime":1689090604806,"mtime":1687297516000},"display":"Python 3.10.10 ('base')","version":{"major":3,"minor":10,"micro":10,"release":{"level":"final","serial":0},"sysVersion":"3.10.10 | packaged by conda-forge | (main, Mar 24 2023, 20:08:06) [GCC 11.3.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":["path env var"],"type":"Conda","id":"/home/workspace/mamba/bin/python","detailedDisplayName":"Python 3.10.10 ('base': conda)"} 2023-07-25 07:22:20.783 [debug] Resolved /home/workspace/mamba/bin/python from cache: {"name":"base","location":"/home/workspace/mamba","kind":"virt-conda","executable":{"filename":"/home/workspace/mamba/bin/python","sysPrefix":"/home/workspace/mamba","ctime":1689090604806,"mtime":1687297516000},"display":"Python 3.10.10 ('base')","version":{"major":3,"minor":10,"micro":10,"release":{"level":"final","serial":0},"sysVersion":"3.10.10 | packaged by conda-forge | (main, Mar 24 2023, 20:08:06) [GCC 11.3.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":["path env var"],"type":"Conda","id":"/home/workspace/mamba/bin/python","detailedDisplayName":"Python 3.10.10 ('base': conda)"} 2023-07-25 07:22:20.838 [debug] Extension ms-toolsai.jupyter accessed known with args: undefined 2023-07-25 07:22:20.841 [debug] Extension ms-toolsai.jupyter accessed refreshEnvironments with args: undefined 2023-07-25 07:22:20.843 [debug] Extension ms-toolsai.jupyter accessed known with args: undefined 2023-07-25 07:22:20.844 [debug] Extension ms-toolsai.jupyter accessed refreshEnvironments with args: undefined 2023-07-25 07:22:20.846 [debug] Extension ms-toolsai.jupyter accessed refreshEnvironments with args: undefined 2023-07-25 07:22:20.848 [debug] Extension ms-toolsai.jupyter accessed refreshEnvironments with args: undefined 2023-07-25 07:22:20.849 [debug] Extension ms-toolsai.jupyter accessed refreshEnvironments with args: undefined 2023-07-25 07:22:20.851 [debug] Extension ms-toolsai.jupyter accessed refreshEnvironments with args: undefined 2023-07-25 07:22:20.853 [debug] Extension ms-toolsai.jupyter accessed known with args: undefined 2023-07-25 07:22:20.855 [debug] Extension ms-toolsai.jupyter accessed refreshEnvironments with args: undefined 2023-07-25 07:22:20.966 [debug] Extension ms-toolsai.jupyter accessed refreshEnvironments with args: undefined 2023-07-25 07:22:20.969 [debug] Extension ms-toolsai.jupyter accessed known with args: undefined 2023-07-25 07:22:20.971 [debug] Extension ms-toolsai.jupyter accessed known with args: undefined 2023-07-25 07:22:20.973 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"internal":{"path":"/bin/python3","id":"/bin/python3","executable":{"uri":{"$mid":1,"path":"/bin/python3","scheme":"file"},"bitness":"64-bit","sysPrefix":"/usr"},"version":{"major":3,"minor":10,"micro":6,"release":{"level":"final","serial":0},"sysVersion":"3.10.6 (main, May 29 2023, 11:10:38) [GCC 11.3.0]"},"tools":[]},"id":"/bin/python3"} 2023-07-25 07:22:20.974 [debug] Extension ms-toolsai.jupyter accessed known with args: undefined 2023-07-25 07:22:20.976 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"internal":{"path":"/home/workspace/mamba/envs/default/bin/python","id":"/home/workspace/mamba/envs/default/bin/python","executable":{"uri":{"$mid":1,"path":"/home/workspace/mamba/envs/default/bin/python","scheme":"file"},"bitness":"64-bit","sysPrefix":"/home/workspace/mamba/envs/default"},"environment":{"type":"Conda","name":"default","folderUri":{"$mid":1,"path":"/home/workspace/mamba/envs/default","scheme":"file"}},"version":{"major":3,"minor":9,"micro":16,"release":{"level":"final","serial":0},"sysVersion":"3.9.16 | packaged by conda-forge | (main, Feb 1 2023, 21:39:03) \n[GCC 11.3.0]"},"tools":["Conda"]},"id":"/home/workspace/mamba/envs/default/bin/python"} 2023-07-25 07:22:20.978 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"internal":{"path":"/home/workspace/mamba/bin/python","id":"/home/workspace/mamba/bin/python","executable":{"uri":{"$mid":1,"path":"/home/workspace/mamba/bin/python","scheme":"file"},"bitness":"64-bit","sysPrefix":"/home/workspace/mamba"},"environment":{"type":"Conda","name":"base","folderUri":{"$mid":1,"path":"/home/workspace/mamba","scheme":"file"}},"version":{"major":3,"minor":10,"micro":10,"release":{"level":"final","serial":0},"sysVersion":"3.10.10 | packaged by conda-forge | (main, Mar 24 2023, 20:08:06) [GCC 11.3.0]"},"tools":["Conda"]},"id":"/home/workspace/mamba/bin/python"} 2023-07-25 07:22:20.979 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"internal":{"path":"/usr/bin/python3","id":"/usr/bin/python3","executable":{"uri":{"$mid":1,"path":"/usr/bin/python3","scheme":"file"},"bitness":"64-bit","sysPrefix":"/usr"},"version":{"major":3,"minor":10,"micro":6,"release":{"level":"final","serial":0},"sysVersion":"3.10.6 (main, May 29 2023, 11:10:38) [GCC 11.3.0]"},"tools":[]},"id":"/usr/bin/python3"} 2023-07-25 07:22:20.981 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"internal":{"path":"/home/workspace/mamba/envs/ml/bin/python","id":"/home/workspace/mamba/envs/ml/bin/python","executable":{"uri":{"$mid":1,"path":"/home/workspace/mamba/envs/ml/bin/python","scheme":"file"},"bitness":"64-bit","sysPrefix":"/home/workspace/mamba/envs/ml"},"environment":{"type":"Conda","name":"ml","folderUri":{"$mid":1,"path":"/home/workspace/mamba/envs/ml","scheme":"file"}},"version":{"major":3,"minor":9,"micro":16,"release":{"level":"final","serial":0},"sysVersion":"3.9.16 | packaged by conda-forge | (main, Feb 1 2023, 21:39:03) \n[GCC 11.3.0]"},"tools":["Conda"]},"id":"/home/workspace/mamba/envs/ml/bin/python"} 2023-07-25 07:22:20.983 [debug] Extension ms-toolsai.jupyter accessed refreshEnvironments with args: undefined 2023-07-25 07:22:20.989 [debug] Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath with args: undefined 2023-07-25 07:22:20.991 [debug] Extension ms-toolsai.jupyter accessed known with args: undefined 2023-07-25 07:22:20.993 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"id":"/home/workspace/mamba/bin/python","path":"/home/workspace/mamba/bin/python"} 2023-07-25 07:22:21.005 [debug] Extension ms-python.vscode-pylance accessed onDidChangeActiveEnvironmentPath with args: undefined 2023-07-25 07:22:21.007 [debug] Extension ms-python.vscode-pylance accessed onDidEnvironmentVariablesChange with args: undefined 2023-07-25 07:22:21.136 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true 2023-07-25 07:22:21.136 [debug] Found cached env for /home/workspace/mamba/bin/python 2023-07-25 07:22:21.137 [debug] Resolved /home/workspace/mamba/bin/python from cache: {"name":"base","location":"/home/workspace/mamba","kind":"virt-conda","executable":{"filename":"/home/workspace/mamba/bin/python","sysPrefix":"/home/workspace/mamba","ctime":1689090604806,"mtime":1687297516000},"display":"Python 3.10.10 ('base')","version":{"major":3,"minor":10,"micro":10,"release":{"level":"final","serial":0},"sysVersion":"3.10.10 | packaged by conda-forge | (main, Mar 24 2023, 20:08:06) [GCC 11.3.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":["path env var"],"type":"Conda","id":"/home/workspace/mamba/bin/python","detailedDisplayName":"Python 3.10.10 ('base': conda)"} 2023-07-25 07:22:21.185 [debug] Clearing context for python dependencies not installed: /home/workspace/workspace-cc/dvt/embed.py 2023-07-25 07:22:21.999 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true 2023-07-25 07:22:21.999 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true 2023-07-25 07:22:21.999 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true 2023-07-25 07:22:21.999 [debug] Found cached env for /home/workspace/mamba/bin/python 2023-07-25 07:22:21.999 [debug] Found cached env for /home/workspace/mamba/bin/python 2023-07-25 07:22:21.999 [debug] Found cached env for /home/workspace/mamba/bin/python 2023-07-25 07:22:21.999 [debug] Resolved /home/workspace/mamba/bin/python from cache: {"name":"base","location":"/home/workspace/mamba","kind":"virt-conda","executable":{"filename":"/home/workspace/mamba/bin/python","sysPrefix":"/home/workspace/mamba","ctime":1689090604806,"mtime":1687297516000},"display":"Python 3.10.10 ('base')","version":{"major":3,"minor":10,"micro":10,"release":{"level":"final","serial":0},"sysVersion":"3.10.10 | packaged by conda-forge | (main, Mar 24 2023, 20:08:06) [GCC 11.3.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":["path env var"],"type":"Conda","id":"/home/workspace/mamba/bin/python","detailedDisplayName":"Python 3.10.10 ('base': conda)"} 2023-07-25 07:22:21.999 [debug] Resolved /home/workspace/mamba/bin/python from cache: {"name":"base","location":"/home/workspace/mamba","kind":"virt-conda","executable":{"filename":"/home/workspace/mamba/bin/python","sysPrefix":"/home/workspace/mamba","ctime":1689090604806,"mtime":1687297516000},"display":"Python 3.10.10 ('base')","version":{"major":3,"minor":10,"micro":10,"release":{"level":"final","serial":0},"sysVersion":"3.10.10 | packaged by conda-forge | (main, Mar 24 2023, 20:08:06) [GCC 11.3.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":["path env var"],"type":"Conda","id":"/home/workspace/mamba/bin/python","detailedDisplayName":"Python 3.10.10 ('base': conda)"} 2023-07-25 07:22:21.999 [debug] Resolved /home/workspace/mamba/bin/python from cache: {"name":"base","location":"/home/workspace/mamba","kind":"virt-conda","executable":{"filename":"/home/workspace/mamba/bin/python","sysPrefix":"/home/workspace/mamba","ctime":1689090604806,"mtime":1687297516000},"display":"Python 3.10.10 ('base')","version":{"major":3,"minor":10,"micro":10,"release":{"level":"final","serial":0},"sysVersion":"3.10.10 | packaged by conda-forge | (main, Mar 24 2023, 20:08:06) [GCC 11.3.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":["path env var"],"type":"Conda","id":"/home/workspace/mamba/bin/python","detailedDisplayName":"Python 3.10.10 ('base': conda)"} 2023-07-25 07:22:22.049 [debug] Clearing context for python dependencies not installed: /home/workspace/workspace-cc/dvt/embed.py 2023-07-25 07:22:22.197 [info] Starting Pylance language server. 2023-07-25 07:22:22.201 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true 2023-07-25 07:22:22.201 [debug] Found cached env for /home/workspace/mamba/bin/python 2023-07-25 07:22:22.201 [debug] Resolved /home/workspace/mamba/bin/python from cache: {"name":"base","location":"/home/workspace/mamba","kind":"virt-conda","executable":{"filename":"/home/workspace/mamba/bin/python","sysPrefix":"/home/workspace/mamba","ctime":1689090604806,"mtime":1687297516000},"display":"Python 3.10.10 ('base')","version":{"major":3,"minor":10,"micro":10,"release":{"level":"final","serial":0},"sysVersion":"3.10.10 | packaged by conda-forge | (main, Mar 24 2023, 20:08:06) [GCC 11.3.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":["path env var"],"type":"Conda","id":"/home/workspace/mamba/bin/python","detailedDisplayName":"Python 3.10.10 ('base': conda)"} 2023-07-25 07:22:22.205 [debug] [object Object]. Shell identified as undefined 2023-07-25 07:22:22.205 [debug] Shell path '/usr/bin/bash', base path '/usr/bin/bash' 2023-07-25 07:22:22.205 [debug] Shell path identified as shell 'bash' 2023-07-25 07:22:22.205 [debug] Terminal shell path '/usr/bin/bash' identified as shell 'bash' 2023-07-25 07:22:22.205 [debug] [object Object]. Shell identified as bash 2023-07-25 07:22:22.205 [debug] Shell identified as 'bash' 2023-07-25 07:22:22.205 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true 2023-07-25 07:22:22.206 [debug] Found cached env for /home/workspace/mamba/bin/python 2023-07-25 07:22:22.206 [debug] Resolved /home/workspace/mamba/bin/python from cache: {"name":"base","location":"/home/workspace/mamba","kind":"virt-conda","executable":{"filename":"/home/workspace/mamba/bin/python","sysPrefix":"/home/workspace/mamba","ctime":1689090604806,"mtime":1687297516000},"display":"Python 3.10.10 ('base')","version":{"major":3,"minor":10,"micro":10,"release":{"level":"final","serial":0},"sysVersion":"3.10.10 | packaged by conda-forge | (main, Mar 24 2023, 20:08:06) [GCC 11.3.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":["path env var"],"type":"Conda","id":"/home/workspace/mamba/bin/python","detailedDisplayName":"Python 3.10.10 ('base': conda)"} 2023-07-25 07:22:22.206 [debug] Cached data exists KeyPrefix=Cache_Method_Output_S.getCondaVersion-Args= 2023-07-25 07:22:22.207 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"dev-container_WORKSPACE_FOLDER_INTERPRETER_PATH_/home/workspace/workspace-cc"-Arg-Separator-undefined 2023-07-25 07:22:22.207 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"dev-container_WORKSPACE_INTERPRETER_PATH_/home/workspace/workspace-cc/cc.code-workspace"-Arg-Separator-undefined 2023-07-25 07:22:22.207 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-/home/workspace/workspace-cc"-Arg-Separator-undefined 2023-07-25 07:22:22.220 [debug] Found cached env for /home/workspace/mamba/bin/python 2023-07-25 07:22:22.220 [debug] Resolved /home/workspace/mamba/bin/python from cache: {"name":"base","location":"/home/workspace/mamba","kind":"virt-conda","executable":{"filename":"/home/workspace/mamba/bin/python","sysPrefix":"/home/workspace/mamba","ctime":1689090604806,"mtime":1687297516000},"display":"Python 3.10.10 ('base')","version":{"major":3,"minor":10,"micro":10,"release":{"level":"final","serial":0},"sysVersion":"3.10.10 | packaged by conda-forge | (main, Mar 24 2023, 20:08:06) [GCC 11.3.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":["path env var"],"type":"Conda","id":"/home/workspace/mamba/bin/python","detailedDisplayName":"Python 3.10.10 ('base': conda)"} 2023-07-25 07:22:22.333 [debug] Extension ms-python.vscode-pylance accessed getActiveEnvironmentPath with args: undefined 2023-07-25 07:22:22.336 [debug] Extension ms-python.vscode-pylance accessed resolveEnvironment with args: {"id":"/home/workspace/mamba/bin/python","path":"/home/workspace/mamba/bin/python"} 2023-07-25 07:22:22.339 [debug] Extension ms-python.vscode-pylance accessed getEnvironmentVariables with args: undefined 2023-07-25 07:22:24.395 [debug] Clearing context for python dependencies not installed: /home/workspace/workspace-cc/dvt/embed.py 2023-07-25 07:22:33.656 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true 2023-07-25 07:22:33.657 [debug] Found cached env for /home/workspace/mamba/bin/python 2023-07-25 07:22:33.657 [debug] Resolved /home/workspace/mamba/bin/python from cache: {"name":"base","location":"/home/workspace/mamba","kind":"virt-conda","executable":{"filename":"/home/workspace/mamba/bin/python","sysPrefix":"/home/workspace/mamba","ctime":1689090604806,"mtime":1687297516000},"display":"Python 3.10.10 ('base')","version":{"major":3,"minor":10,"micro":10,"release":{"level":"final","serial":0},"sysVersion":"3.10.10 | packaged by conda-forge | (main, Mar 24 2023, 20:08:06) [GCC 11.3.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":["path env var"],"type":"Conda","id":"/home/workspace/mamba/bin/python","detailedDisplayName":"Python 3.10.10 ('base': conda)"} 2023-07-25 07:22:35.541 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"dev-container_WORKSPACE_FOLDER_INTERPRETER_PATH_/home/workspace/workspace-cc"-Arg-Separator-undefined 2023-07-25 07:22:35.542 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"dev-container_WORKSPACE_INTERPRETER_PATH_/home/workspace/workspace-cc/cc.code-workspace"-Arg-Separator-undefined 2023-07-25 07:22:35.542 [debug] Found cached env for /home/workspace/mamba/envs/default/bin/python 2023-07-25 07:22:35.542 [debug] Resolved /home/workspace/mamba/envs/default/bin/python from cache: {"name":"default","location":"/home/workspace/mamba/envs/default","kind":"virt-conda","executable":{"filename":"/home/workspace/mamba/envs/default/bin/python","sysPrefix":"/home/workspace/mamba/envs/default","ctime":1689090613363,"mtime":1687297593000},"display":"Python 3.9.16 ('default')","version":{"major":3,"minor":9,"micro":16,"release":{"level":"final","serial":0},"sysVersion":"3.9.16 | packaged by conda-forge | (main, Feb 1 2023, 21:39:03) \n[GCC 11.3.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":[],"type":"Conda","id":"/home/workspace/mamba/envs/default/bin/python","detailedDisplayName":"Python 3.9.16 ('default': conda)"}- removedinfo-neededIssue requires more information from posterIssue requires more information from poster
on Jul 25, 2023 23 remaining items
- addedarea-environmentsFeatures relating to handling interpreter environmentsFeatures relating to handling interpreter environmentsneeds PRReady to be worked onReady to be worked on
on Jul 25, 2023 You're welcome, reopening so we can do this: #21220 (comment).
- added a commit that references this issue
on Jul 25, 2023 Alexander Holiday (@glinka) Fix should be out in the pre-release version of the extension in a day, use the following to try it out:
- addedauthor-verification-requestedIssues potentially verifiable by issue authorIssues potentially verifiable by issue author
on Jul 25, 2023 - locked as resolved and limited conversation to collaborators
on Aug 25, 2023



Type: Bug
Behaviour
Expected vs. Actual
When editing .py files, I cannot adjust the python interpreter. It's pinned to the base mamba/conda env in ~/mamba/bin/python, but I'd like it to use ~/mamba/envs/my-env/bin/python. When I select this in the lower right, or by setting "Set python interpeter" in the command palette, nothing changes (even after reloading). Similarly, hard-coding the desired interpreter into "python.pythonPath" has no effect. I would expect the interpeter to change with my selection. Jupyter notebooks do not have this problem; there, I'm free to choose any kernel I like and it instantly takes effect.
Note that I'm running VSCode in a container, if that changes anything.
Steps to reproduce:
Diagnostic data
python.languageServersetting: DefaultOutput for
Pythonin theOutputpanel (View→Output, change the drop-down the upper-right of theOutputpanel toPython)User Settings
Extension version: 2023.8.0
VS Code version: Code 1.78.0 (252e5463d60e63238250799aef7375787f68b4ee, 2023-05-03T20:09:46.685Z)
OS version: Linux x64 6.1.20-2rodete1-amd64
Modes:
Sandboxed: No
Remote OS version: Linux x64 5.19.0-1022-gcp
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
A/B Experiments