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

Jupyter: Select a Kernel command missing in Python Interactive context #4479

Closed
mparq opened this issue Jan 25, 2021 · 4 comments
Closed

Jupyter: Select a Kernel command missing in Python Interactive context #4479

mparq opened this issue Jan 25, 2021 · 4 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@mparq
Copy link

mparq commented Jan 25, 2021

Created out of discussion from #3724

Environment data

  • VS Code version: 1.52.1
  • Jupyter Extension version (available under the Extensions sidebar): 2020.12.414227025
  • Python Extension version (available under the Extensions sidebar): 2021.1.502429796
  • OS (Windows | Mac | Linux distro) and version: Mac 10.15.7 (Catalina)
  • Python and/or Anaconda version: 3.8
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
  • Jupyter server running: Remote (via local Docker)

Expected behaviour

In Python interactive window, I should be able to select a kernel via Jupyter: Select a Kernel command.

Actual behaviour

Command Palette does not show Jupyter: Select a Kernel in Python interactive context

Steps to reproduce:

[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

  1. Open up a .py file after connecting a remote notebook server to Jupyter extension and run cell. Python interactive window opens
  2. Notice that command palette willl not contain Jupyter: Select a Kernel command. However, top right of interactive window will show UI for selecting different kernel on remote notebook server.
  3. Export .py file to .ipynb and open in new window. Notice that command palette for notebook context does have Jupyter: Select a Kernel as an available command.
@mparq mparq added the bug Issue identified by VS Code Team member as probable bug label Jan 25, 2021
@DavidKutu
Copy link

Thanks for filing @mparq. I can confirm there is no command (even if not using remote). I'll bring it up in our next meeting.

@fohria
Copy link

fohria commented Feb 18, 2021

I have the same issue for .ipynb files, with the additional bug that if I select kernel through the drop down list, nothing happens. It stays on the kernel in the conda environment I'm running the jupyter server from.

If I select "Jupyter: Select kernel" from the command palette, after a few seconds I get a notification about an error:

Screenshot 2021-02-18 at 18 13 51

Running a line from a .py file to interactive window, opens a random kernel among the available conda environments available on the remote machine.

@DavidKutu
Copy link

Hi @fohria, could you please open a new issue? This seems to be something else going wrong.

@IanMatthewHuff
Copy link
Member

Validated.
image.png

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

5 participants