Reputation: 593
I saw similar questions, but they refered to older versions of jupyter..
I had a (very) long process running on jupyter notebook on AWS remote machine, and I forgot to write the resulting dataframe after the computation was complete. At some point, the ssh connection was terminated (Broken pipe), and the notebook on the browser lost connection to the kernel.
I ran ps -aux | grep jupyter
, ps -aux | grep ipykernel
, and saw that the process is still out there.
What are the steps that I should take in order to reconnect to the (existing) jupyter kernel and save the data? Is that even possible?
Upvotes: 3
Views: 917
Reputation: 4327
Try issuing command jupyter notebook list
Here is the output for my PC
Currently running servers:
http://localhost:8888/?token=caxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2e38 :: F:\user\project1
http://localhost:8888/?token=5xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxc7f :: F:\user\project2
Although, the first server is invalid (but it was valid some time ago), the second one is OK, I can open displayed link.
Upvotes: 1