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
Output do not update after close and reopen the notebook page #83
Comments
Closing this issue as it's been inactive for several months. Please feel free to open a new issue at the jupyter/help repo or reopen this issue. Thanks! 🌻 |
I am facing the same issue. Is it possible to reopen a notebook and get the output of the running kernel ? |
I have the same issue too. Reconnecting kernel doesn't help me either. |
@raviqqe Does this happen with Keras or any notebook? |
I was running not Keras but numpy code. I closed a notebook tab and opened it again. However, it's not showing updated output while its kernel is still running. Note that I was running Jupyter in client-server setting. My environment is the below.
The early part of my configuration file
I'm not sure that this problem is caused by Jupyter or Chrome. |
Same problem |
@willingc can you reopen this issue? It hit me as well. |
@floatdrop Instead of reopening here, would you mind opening a new issue on |
The issue is still here |
Same problem |
Same issue |
@gnestor Would you mind taking a look and see if you can reproduce? If you can, would you mind moving to this issue to the notebook repo? Thanks. |
My guess: When a notebook is closed and reopened, the kernel may continue running but the cells' parent header values change. Therefore the notebook reconnects to the kernel and resumes receiving messages from the kernel but the cell outputs don't update because they don't recognize the parent headers in these messages. @rgbkrk Do you concur? The simple test case: import time
for i in range(101):
time.sleep(1)
print(i) Then reload the notebook and if you're logging messages, you'll see that the What I observe:
I'm not sure where in the source messages are mapped to cells outputs (and specifically where the parent_id is used to do that), but I assume it has something to do with the cell's id which changes after a reload or close/reopen. |
Yup, there's no more association between the cells and the message IDs when the page is refreshed because that's all stored client side in the browser. |
I have also the same problem, it's annoying if we can't see the progress anymore after we close the tab or disconnected for a while, especially during the training which could run for many hours or days. So, fix to this bug would be really very helpful. Thanks. |
please. My app has been running for hours and I can't tell how far it is :/ |
please please please fix this issue! I end up having to re-run code because the output doesn't update if I have to disconnect. This is a huge problem for scripts that take a long time ... which they do. |
Any update on this issue? It is impractical to operate this way on remote platforms without output updates after closing a notebook. For example Google Cloud engines runs Jupyter notebooks and the connection gets lost from time to time, but the kernel continues operating and without progress updates. |
@rgbkrk @minrk @ellisonbg What changes would be needed to preserve the mapping between message parent header IDs and cell IDs? Could this somehow be derived from the notebook document? Or could it be stored in local storage? |
At least for nteract and jupyterlab, that seems like a reasonable thing to store in the |
I didn't have this problem before (feb 2019) but now I have it somehow. Training for 2 days and no way to see the current status.. |
Any solution for this? |
Unfortunately no, the cell IDs change whenever the page is refreshed so the mapping between kernel messages and cells is lost. I don't have time to work on this at the moment but I think it's an important feature and I will support anyone that wants to take it on. |
Same issue. It's really frustrating whenever the notebook closes or disconnected, the cells are not updated anymore. |
I face the same issue it is a major problem when you run a script which takes several days to run using a server. Sometimes I didn't have a choice and run the script from the beginning all over again. Can you @willingc please address that? The first issue reported in 2015 we are in 2019 and I didn't see any answer. Take for example google colab when you refresh the page still the running cell keeps updating. |
@AvivSham Please open an issue on the jupyter/notebook repo or the jupyterlab/jupyterlab repo with details of your particular configuration. Thanks. |
schrodinger's kernel lmao Whether the process is running as intended or not |
here to keep the issue alive :). same problem. guess they will never fix it lol. |
If someone propose a PR, I think they will accept it, indeed ! |
We are in 2022, the problem is still unsolved :( |
happened again when i was running a model.... |
Just use the following Annoying issue but who knows when it will be fixed. |
You can also use weights and biases for logging. |
This problem is still unsolved :/ It's difficult to use jupyter with remote environments, having to keep it open all the time. |
This bug happens all the time. |
Is this still being considered? |
PLEASE CREATE A SOLUTION FOR THIS!!!!!!!!!!! |
Hello, same beg from our side - remapping running jupyter server from our server and opening/closing jupyter notebook remotely to check print (log) on our local cause 0 continuations (no progress/prints/logs etc.)..thus for the real-world application NTB is unusable, yet, it is a great "app", it would be great to add this flexible/dynamical element if possible. Or at least a workaround to it. |
I've been working on a platform to solve exactly this, called Noteable. You can try it yourself at https://app.noteable.io/ The notebook outputs are updated even if your tabs are closed. You can also open multiple tabs and work on the same document with yourself or others. No worries about clobbering your work and you can let long-running jobs run. Reach out if you'd like to get wider support at your lab or organization. Hopefully someday we can bring back this tech into Jupyter open source. |
Here we are, 7+ years later, still literally zero progress on this. Every single person who's ever used a Jupyter notebook for ML has run into this problem and many lost major amounts of progress because of it. We are not going to stop asking for this until you fix it. It's not a nice-to-have, it's the biggest problem in Jupyter notebooks today, and it needs to be fixed. Does the dev team just not care? |
Is this application even maintained nowadays? |
same issue 7 years later, what a shame |
您好,您的邮件我已经收到,会尽快给您回复,谢谢。
|
I kind of love the occasional messages I get from this thread though |
same issue for me, when running the notebook with port-forwarding. |
frfr, if the devs have not taken it up for 7y, theyre probs not gonna do it now. The best solution so far is to simply update a text/csv with progress every epoch/iteration, and move on... |
dude literally created a tool out of a github issue, hats off @rgbkrk ill totally check this out |
another beautified output workaround . Use workaround above with this script in chrome dev tool console
|
I also found a workaround solution. Just don't refresh the browser tab. If you're using Jupyter lab, there are multiple panes, |
7 years lol |
Same Issue |
super lame this wasn't addressed, guess it's time to stop using Jupyter lab... |
Hello, fellow humans, There are 68 participants here, but I am going to close this issue, since it has long ceased to be productive. There are some good gems sprinkled about, like [the mention of the
~ Trust me - if it was easy within the current framework within Jupyter, we would have done it by now. And if you don't trust me, no one has stopped you from trying to do it yourself. But piling on with a "bump!" or "PLEASE FIX THIS!" doesn't do anything I also worked on the Noteable platform. And no, @sambbhavgarg, though he does have superhuman hacking powers, @rgbkrk didn't create it by himself :) , there were about a dozen people working on it, and no, it wasn't created just to solve this one issue. Importantly, the way it did get solved there involved a significant engineering effort to move the state of the notebook from the browser to the server, which is one of the approaches that's also been happening in parallel out in the open source community. Those of you wanting to follow along and interested in seeing this addressed in Jupyter are encouraged to follow these issues, or use them as starting points to getting involved. jupyter/notebook#641 I'll be closing this issue, but if you want to continue the discussion, you can do so over on the Jupyter Discourse. |
Hi,
I am using a library named keras with jupyter notebook. It's nice that keras use a text progress bar to indicate the progress like this:
But the problem is that, if the script is running with the progress bar, I can't close the webpage which I used to start the script. Otherwise I won't see the progress bar update anymore, when I open the notebook again, if it's still running, the title will become something like "(Starting) XXXXXX", but I can't see any update in the page.
The progress bar used by keras is like this:
https://github.com/fchollet/keras/blob/b126b6328a44fa3332d2d7fd011da3ff196a669a/keras/utils/generic_utils.py
Can anyone look into this?
Thanks in advance.
The text was updated successfully, but these errors were encountered: