question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Output do not update after close and reopen the notebook page

See original GitHub issue

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:

Train on 381734 samples, validate on 20092 samples
Epoch 1/1
381734/381734 [==============================] - 257s - loss: 0.4094 - val_loss: 0.2863

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.

Issue Analytics

  • State:open
  • Created 8 years ago
  • Reactions:38
  • Comments:78 (12 by maintainers)

github_iconTop GitHub Comments

88reactions
mcmarcommented, May 2, 2020

For anyone looking for a quick workaround:

  • Open the Chrome dev tools
  • Go to network tab
  • Click WS (Websockets)
  • Click on any of the active websockets
  • Go to messages tab
  • Click on any of the messages after the first
  • Expand content You should see your output there
57reactions
hadimcommented, Aug 25, 2016

I am facing the same issue. Is it possible to reopen a notebook and get the output of the running kernel ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reloading closed jupyter notebook - python - Stack Overflow
I was wondering if there's a way to keep the kernel running and update the output when the notebook is reloaded in the...
Read more >
Close and reopen notebooks in OneNote - Microsoft Support
To open the notebook again, click or tap More Notebooks in the Notebooks list. Note: For OneNote 2016, learn how to close a...
Read more >
Restoring computation output after disconnect in Jupyter ...
I have found that after reconnecting I need to close the browser tab with the notebook and re-open it (*without* restarting the kernel...
Read more >
Jupyter output view fails to update after a period of inactivity ...
If I close the notebook file and re-open it the preview will be updated to whatever state it should have been before closing...
Read more >
Progress bar disappearing when closing and reopening the ...
Not that I know of (this isn't linked to the progress bar, any update to a cell output will stop happening once you've...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found