Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reloading closed jupyter notebook

Was trying to run the code in jupyter which runs fine:

import time

for i in range(10000):
     print(i)
     time.sleep(1)

After it prints to around 1,2,3,4,5,6 , I decided to close the browser. However when I reopened the browser, the output is still stuck at 6. I was wondering if there's a way to keep the kernel running and update the output when the notebook is reloaded in the browser after it is closed.

like image 491
Stanley Avatar asked Sep 01 '25 16:09

Stanley


1 Answers

As far as I know, there is no way to restore it. Kernel is still running, but the browser will not update itself.

like image 135
night_bat Avatar answered Sep 04 '25 06:09

night_bat