Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot switch environments after notebook is open #2959

Closed
steve28 opened this issue Oct 9, 2019 · 2 comments
Closed

Cannot switch environments after notebook is open #2959

steve28 opened this issue Oct 9, 2019 · 2 comments

Comments

@steve28
Copy link

steve28 commented Oct 9, 2019

Bug: Switching environments after a notebook has been opened does not switch the environment for the notebook.

Use case: I open vscode to edit an ipython notebook that relies on a certain environment. I try to execute the notebook, and then realize I am in the wrong environment. So I select the new environment. At this point, there doesn't appear to be any way to get that notebook to use the new environment without completely quitting VSCode

Steps to cause the bug to occur

  1. Open an iPython notebook
  2. Execute notebook
  3. Switch conda environments with Interpreter picker
  4. Execute notebook again
  5. Notice it's still using old environment

Actual & Expected behavior

Actual Behavior: The notebook executes in the environment active when VSCode starts no matter what you do with switching interpreters

Expected Behavior: Switching environments should re-start notebook kernel in new environment.

Your Jupyter and/or Python environment

Please provide as much info as you readily know

  • Jupyter server running: Local
  • Extension version: 2019.10.41019
  • VS Code version: 1.39
  • Setting python.jediEnabled: true
  • Python and/or Anaconda version: anaconda 2019.07 py37_0
  • OS: Mac 10.15
  • Virtual environment: conda

Developer Tools Console Output

@rchiodo
Copy link
Contributor

rchiodo commented Oct 9, 2019

Yeah we should be killing the jupyter server when the selection is changed.

@greazer
Copy link
Contributor

greazer commented Oct 22, 2019

This is being addressed by issue being spec'd in microsoft/vscode-python#3123

@greazer greazer closed this as completed Oct 22, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 29, 2019
@microsoft microsoft unlocked this conversation Nov 14, 2020
@DonJayamanne DonJayamanne transferred this issue from microsoft/vscode-python Nov 14, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants