Description
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:
- Install base conda env
- Activate base env and install additional env in ~/conda/envs/new-env
- Open .py file and attempt to switch interpeter to ~/conda/envs/new-env
Diagnostic data
- Python version (& distribution if applicable, e.g. Anaconda): 3.10.10
- Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Unknown
- Value of the
python.languageServer
setting: Default
Output for Python
in the Output
panel (View
→Output
, change the drop-down the upper-right of the Output
panel to Python
)
XXX
User Settings
venvPath: "<placeholder>"
languageServer: "Pylance"
formatting
• provider: "yapf"
• yapfArgs: "<placeholder>"
terminal
• activateEnvironment: false
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
Item | Value |
---|---|
CPUs | Intel(R) Xeon(R) W-2135 CPU @ 3.70GHz (6 x 4399) |
GPU Status | 2d_canvas: enabled 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 |
Load (avg) | 1, 1, 1 |
Memory (System) | 125.40GB (107.26GB free) |
Process Argv | --unity-launch --crash-reporter-id 4864ec53-29cb-400d-8df6-b813d008ae4e |
Screen Reader | no |
VM | 0% |
DESKTOP_SESSION | gnome |
XDG_CURRENT_DESKTOP | GNOME |
XDG_SESSION_DESKTOP | gnome |
XDG_SESSION_TYPE | x11 |
Item | Value |
---|---|
Remote | Dev Container: BenjaminML @ ssh://cc-aholiday |
OS | Linux x64 5.19.0-1022-gcp |
CPUs | Intel(R) Xeon(R) CPU @ 2.20GHz (12 x 2200) |
Memory (System) | 83.47GB (79.61GB free) |
VM | 0% |
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vsclangdc:30486549
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30695312
azure-dev_surveyone:30548225
2e4cg342:30602488
pyind779:30671433
89544117:30613380
pythonsymbol12:30671437
a9j8j154:30646983
6233i204:30730053
azdwalk:30721579
pythonms35:30701012
pythonfmttext:30731395
fixshowwlkth:30730052
pythongtdpathcf:30731979