-
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
Persistent Jupyter Kernels - Restore/Re-connect to an existing local/remote kernel (do not shutdown kernel upon closing/reloading vscode/vscode.dev) #3998
Comments
Is there a milestone issue to see the progress of the update? |
Unfortunately this issue has not yet been prioritized at our end, please do vote on this issue though |
What do you suggest as a workaround if one wants to run long 10+ hours sessions using Jupyter notebooks in vscode when connected to a remote kernel over SSH (using vscode remote extension)? |
@matifali unfortunately at this stage we have no work around for this, let me see if i can get an udpate within a week. |
@matifali
I ask this because the easiest thing to get working is:
Thanks |
I would prefer this output as my use case is to train deep learning models and its better if we can see the full history.
This is preferred,
This is also OK but the problem is vscode is unable to connect to a running remote kernel and show any outputs. Yes, the process is running but we do not see anything printed. There is no indication if the losses are actually decreasing. |
+1, and echoing above points that this is a breaking issue, and the number 1 pain point for me developing on VS code. Can't agree more! |
+1 |
I'm wondering if this could be handled the same way that persistent R sessions are handled? I utilize the extension below, that has a "session watcher feature". I'm able to attach to R sessions from the previous day, with objects intact. It is just as reliable and sometimes even more so, than Rstudio IDE. https://github.com/REditorSupport/vscode-R?tab=readme-ov-file I was hoping that I could do something similar with python by utilizing a python script, the While I am able to send code to the python terminal within a single session using the above solution, when I log in the next day and try to send code again, it creates a new python terminal and my old one is ignored. The only way to interact with the old python terminal is to manually copy/paste code into the terminal which is hugely problematic. Perhaps it is possible to reconnect my python "session" with this particular terminal, but I have not figured out how to do so. For reference, I am using CodeServer/VSCode in an OnDemand interface, with the session being supported by a slurm job on HPC cluster. ETA, this suggestion is coming from my complete lack of knowledge on how things work in the backend. :) |
+1 |
+1 this is by far the biggest issue I have with VS code |
+1 |
+1 On a side note, what's the convention for upvoting an issue? Are top issues determined by the number of reactions or by the number of comments? Sure spamming +1 does bump the issue, but also sacrifices on its readability. |
Mine as well |
This is the sole reason why I don't use VS code notebooks (except in the rare occasions I'm running everything locally). Related: #15543 See also jupyterlab/jupyter-collaboration#279, that got recently merged, and is trying to solve the same kind of problem (on JupyterLab) |
+1 |
+1, so frustrating when the Jupyter environment is still running when I reconnect, but I can't access it |
+1 |
Please fix this. VSCode is unusable because of this. |
+1 |
1 similar comment
+1 |
+1, this would be great to fix :) |
+1 |
3 similar comments
+1 |
+1 |
+1 |
+1 this would improve my vscode experience 10x |
+1 |
+1 This is a very important issue that is impacting our productivity daily and made us switch to JupyterLab (hopefully only temporarily) |
@gargj-aws not to derail this topic, but does JupyterLab currently support persistent remote sessions, where you can reconnect without losing output ? |
Yes and no: yes on persistent remote sessions (e.g. on SageMaker Studio), but no on the output that is generated while the browser is closed. |
Call the command |
Problem
Local
Remote
Investigation Running Server & JupyterLab API for extensibility
Goals:
This is a by-product of the long running kernels (i.e. you get this for free - almost)
Planned (related) Prototypes
Solve problems related to kernel/session being lost due to :
Technical details
Background process
Manages kernels & sessions
Expose kernel socket connection over this connection (we already have the code/technology for this) - proxy socket (dummy kernel in UI layer, by creating a dummy socket connection)
Security - how do we secure this web server (will need to be addressed, but i'm leaving that for later)
I wont be exposing a connection, instead will just expose the SessionManager, KernelManager & other class instances from extension API
Also related #300
The text was updated successfully, but these errors were encountered: