-
Notifications
You must be signed in to change notification settings - Fork 294
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
Ensure that we notify the user when an embedded jupyter kernel cannot be found on a user's machine OR it's not selected as the current python extension kernel #2366
Comments
What happens for me is that there is no message and it just picks the kernel that matches the currently selected python. Do we want to change this behavior? Why would the user care in most cases? |
Repro steps:
|
We should RCA this to figure out what actually went wrong in step 11 (user couldn't change the kernel) Additionally we might brainstorm on ideas to alleviate the confusion around kernel vs python. |
Hi, I think my issue is related.
|
@LSgeo your issue sounds like this: That should be fixed in our insider's build |
We need to dig into all the potential issues here and split out any bugs we need to address. |
Talk with Rong and Jeffrey as to how to deal with this issue. |
Unassigned as this might be covered by @rchiodo 's work on microsoft/vscode-python#9250 |
@rchiodo this work done for this doesn't seem to totally match up with this bug title. I think your PR fixed invalid kernels. But if you just have a notebook with a non-existent kernel specified (like if you downloaded a notebook from github) then it just silently falls back on the active interpreter. But it's a bit funky since this bug had so many different issues listed in it. Do we still want a warning in the case of a missing embedded kernel? |
I don't think it falls silently to the active interpreter. We have code that displays a message to the user and we notify that it could not be found. @IanMatthewHuff Are you able to repro this (opening nb with non-existent kernel). |
I can. It defaults to the active interpreter. You can do this quite easily by just changing the kernel to something goofy. It just opens the notebook and picks the active interpreter. No message, not even a trace in the debugger. |
Yup, it's silent. Just uses active interpreter. |
Looking at the code it will notify if it needs to install a kernel for the interpreter. But if that interpreter already has a kernel installed it's silent. Should be a quick little change. I'll pull it back to in-progress and add the message for the case where the active interpreter is already installed. |
Validated |
Verify that on loading then running a cell in a notebook the user is notified if:
OR
Daniel Moth ran into this problem (probably microsoft/vscode-python#2) and it was highly confusing as to what was happening. This was critical because he knew he needed to install some packages for the notebook to work, but it was really unclear to him where and how to make the changes.
The text was updated successfully, but these errors were encountered: