Skip to content

Cannot switch to base conda environment in interactive window after latest updates #25814

@david-cortes

Description

@david-cortes

Environment data

  • VS Code version: 1.109.5
  • Jupyter Extension version (available under the Extensions sidebar): 2025.9.1
  • Python Extension version (available under the Extensions sidebar): 2026.2.0
  • OS (Windows | Mac | Linux distro) and version: Debian Linux
  • Python and/or Anaconda version: conda 24.11.3 / mamba 1.5.9
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
  • Jupyter server running: Local

Steps to reproduce:

  1. Create a conda setup with many environments.
  2. Launch a new interactive jupyter window from this extension.
  3. Change the python kernel to the base conda environment.

Video:
Image

Expected behaviour

Should switch to the base environment.

Actual behaviour

Switches to the last environment in the list, regardless of what's the current environment.

It does not affect saved interactive windows that were created before the latest updates to the python extension and vscode from a few weeks ago or so - not sure which one is at fault though.

Logs

Does not produce any log in the jupyter extension logs.

Output for Jupyter in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Jupyter)

XXX

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from postertriage-neededNeeds assignment to the proper sub-team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions