0

I've been looking at Jupyter Lab's GitHub repository (issues, roadmap, etc.), and I couldn't find any indices regarding the progress toward resistance to network issues or browser reload.

I first noticed this with Z2JH v2.0, which I use at work. The same issue is with the latest version of JupyterLab (v3.4.8) installed with pip on my machine. Running the sample below and reloading the browser in the middle of execution would end up at the last saved state, and the cell's output would not continue updating. Any other changes after saving are also lost.

import time

def long_running_task():
    for i in range(10):
        time.sleep(1)
        print(f'Done #{i+1}!')

long_running_task()

I came across several hacks/workarounds, such as writing to file and IPython magic %%capture. However, running a long-running task becomes frustrating when I need to move around, close the laptop and migrate to a different location.

Alternatives? Suggestions?

gcerar
  • 920
  • 1
  • 13
  • 24

0 Answers0