-
Notifications
You must be signed in to change notification settings - Fork 295
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
Specify remote kernel in settings or environment variables #9165
Comments
please could you confirm the version of vscode and the extension. The latest version of the extension doest require users to reload vscode. i believe you mentioned in discussions that you were using vscodium. right now, i don't think there's any need for the feature you have requested, as you seem to be using an old version of the extension or vscodium that doesn't have the same functionally as vscode stable. |
Yes, I was using a bit older version for code-server. I updated to the newest supported plugin version, so the restart while not necessary, it does not actually populate the active kernel runtime list until you do restart (image). Without the restart middle section is not available.
I would be willing to integrate the changes into the older version of the plugin as I'm already attempting to navigate this code base to implement this myself, but it's a big code base so it's going to take a hot minute. Additionally I have tested with this environment too:
The same problems with the kernel selection list persist in both native VSCode and CodeServer. However, in either case, ideally this selection is something I want to bypass entirely. |
this shouldn't be necessary, it's possible, its slow. please try reopening a notebook a few times to double check.
are you saying that you want the notebook to keep using the same kernel. if you are using a review kernel, then the extension will remember this and you will not have to select it everytime. |
Nope, happens all the time with a new connection, it's fine with connection that was already saved and VSCode reloaded. And new connection only, if I were to switch to local and then to remote again it would detect them, but only if it was selected from the saved connection list.
You are correct that the extension will
Right now the plugin automatically spawns a non-persistant kernel like so:
What I would like is that it would connect to a persistent instance automagically without any user interaction, e.g., by overriding the workspace settings through backend. But for that I need some kind of interface with the plugin itself. To sum up: I am trying to replicate |
If you want to ensure the same kernel is always used for all notebooks, then I'll close this issue in favor of #9115 |
I found within the codebase ( |
Problem
Currently, the plugin does not provide a non-GUI way to specify which remote kernel to attach to. This is an issue because you cannot force the VSCode instance to start with specific remote kernel attached. Therefore the workflow of attaching to a remote kernel looks like this:
4. Get prompted to restart the VSCode instanceOutcome
This prevents you from performing any reasonable automation to connect to a persistent kernel instance.
Reason
Now you may be thinking, why would someone need this functionality? The reason is simple, the plugin right now does not provide any way to have persistent kernels working and instead spins up a new kernel for each VSCode instance, killing any active notebook state. To work around this, the suggestion is to have use remote kernels (#3571). However, the amount of user interaction it requires makes such feature unviable.
The text was updated successfully, but these errors were encountered: