Skip to content

Python environment not updating when using bottom left (blue) bar #2206

@raqueldata

Description

@raqueldata

Bug: Notebook Editor, Interactive Window, Editor cells

VSCODEBUG

Steps to cause the bug to occur

  1. Have multiply python environments in your machine. Choose an environment.
  2. Load an .ipynb file. Run the file. Import a library that you don't have in your current environment . You should get an error.
  3. Try changing the environment through the bottom blue bar. Select the environment that does have the library. Check top right environment. It doesn't change even though it should
  4. Run the cell again. Error still appears.
  5. Environments in top right and bottom left don't match.
  6. Change the environment through the top right bar. This should work. (bottom left environment is not updated.)

Actual behavior

The only way to fix this is not by Command+Shift+P and selecting a different environment. I fixed it by changing the environment shown in the top right hand side of VS Code.

Expected behavior

The bottom option and Command+Shift+P should change the environment.

Your Jupyter and/or Python environment

Please provide as much info as you readily know

  • Jupyter server running: Local
  • Extension version: 2020.2.64397
  • VS Code version: 1.42.1
  • Setting python.jediEnabled: true
  • Python and/or Anaconda version: 3.6 (venv), 3.7 (base)
  • OS: Mac
  • Virtual environment: conda

Developer Tools Console Output

Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions