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
Notebook App doesn't reconnect to a running kernel #4138
Comments
What happens if you do this after re-opening:
? |
If you actually have no connection to the kernel, the interrupt will never happen, and/or the new cell execution will never be submitted. If you are connected, then it will be interrupted, and the new cell will be submitted. |
When I come back to the notebook, I don't see any new "X"s getting printed. When I interrupt the kernel and then execute a different cell, it executes fine, but still no new "X"s getting printed (which I suppose wouldn't happen anyway since the kernel was just interrupted) Should be easy enough to try out on your end as well. My use case is that I'd like to be able to have a long-running cell (which might literally take days to execute) and be able to close/re-open the web browser. Otherwise, I'm not sure how you could use ipynb for anything long-running in which you don't have a constant connection |
I mentioned this last night, but you probably didn't catch/understand it: When you disconnect from a kernel by closing your browser, the kernel On Thu, Aug 29, 2013 at 12:55 PM, Matthew A. Russell <
Brian E. Granger |
Ironically, the output is actually coming back to your browser after you On Thu, Aug 29, 2013 at 1:11 PM, Brian Granger ellisonbg@gmail.com wrote:
Brian E. Granger |
@ellisonbg - Ah, I see now. I misunderstood. I thought that you would just lose the output that would have been sent to your browser while it was closed but once you re-connected, you would start seeing output again when the kernel "reconnects" It sounds like for my case in which I just have one long-running cell, once I close the browser, there is just no way to recover that output unless I do a little extra work to have it logged to a file on disk that I could monitor (which should work fine.) All I really need to do is keep an eye on it to see that progress is happening in a calculation. I'll leave it to you guys to close this or to use it as a reference point as an enhancement for what would be a really cool feature enhancement. |
Let's close this one, but open another with a more accurate description of On Thu, Aug 29, 2013 at 1:20 PM, Matthew A. Russell <
Brian E. Granger |
A link to the new one with more accurate descriptions would be helpful. Which one is it? There are quite several ones that have reconnection as a topic? |
That would be #4140 I guess. |
Brian, your description seems to imply that newly created cells should be able to execute and receive output after a reconnect? That does not seem to work for me. |
I too have the similar use uses like yours , But for those things jupyter is not useful , Better off to regular python files and kernel , and use screen tool for Linux |
My understanding from a chat with Brian Granger was that I should be able to lose a connection with an existing kernel (such as would be the case in closing a web browser that's running against a remote server when a kernel is busy with the "*" indicator by a cell), and ipynb would reconnect to that kernel when I re-open the notebook. This doesn't appear to be the case, so I wanted to ask for clarification on whether or not it's a bug or it's just not a feature at this point.
Test case to reproduce is a notebook cell with the following in it:
The text was updated successfully, but these errors were encountered: