-
Notifications
You must be signed in to change notification settings - Fork 304
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
Select kernel does not put up the 'install ipykernel' message #5736
Comments
Yes that should come up.
|
So I'll confess I don't have the most context on our kernel start logic, but I went through the codebase looking for any places that we were improperly passing vscode-jupyter/src/client/datascience/notebook/notebookControllerManager.ts Lines 441 to 444 in 8d84808
vscode-jupyter/src/client/datascience/jupyter/serverPreload.ts Lines 59 to 77 in 4a0eefa
Rich's log doesn't have the log message from the second code snippet in it so I think that means the first one might be the culprit. The first one was also last touched in the kernelpush updates: #5565 |
I think this is correct I think we should change this to perhaps have a state. Basically its a race condition, auto startup says don't display UI. But when you start running a cell, if the auto start has already started, then we just use that existing promise. I think a quick fix would be to re-check the dependencies based on some state. |
I remember having something that would switch the 'disableUI' flag as soon as somebody clicked a button. But that was long ago and it was for getting a jupyter server. I believe that's how we handled this before. |
I think we'll need an object instead of a flag, so that when progress messages are being displayed, we can see the change in the state of the object & we can then create/display the UI. However, the first issue - checking dependencies will still need to be addressed separately. I think the best fix is:
As its not a bug, but a mere perf issue & i don't think it will be too bad, after all, we didn't have auto start in native notebooks for a while, hence we should be ok until next release. Also better than making a lot of major changes to the code (that's used in webview/interactive), etc at the last minute. |
My vote would be to defer fixing this to the June release if possible, as it doesn't seem to be a regression and a fix is risky (potentially impacts kernel startup and being able to run cells). I'm not sure we need to disable auto start at all for the May release. Am I missing something about this bug that would make it worth fixing sooner? |
I agree |
Autostart is disabled in main right now. We should turn that back on as part of fixing this bug. |
Quick note when fixing this. This code should be reenabled as part of the fix: vscode-jupyter/src/client/datascience/notebook/notebookControllerManager.ts Lines 463 to 466 in aaa6fe3
|
Can wait until July. |
Closing in favor of #7903 |
Create a new virtual env
Open a notebook with 'Select Kernel' being shown at the bottom
Run a cell
Pick the new env
Make sure 'auto start' is enabled.
Nothing happens
It should ask you to install ipykernel.
The text was updated successfully, but these errors were encountered: