Hi,
We are running JupyterLab with JupyterHub - all on K8s.
Many users run their environments and some of them complain about auto-save is not “always working”
One of the cases:
I was working till 08:59 (at my desk), when off to a meeting (a network event)
Open my laptop for a few minutes around 2024-03-12 09:49
Went back to my station and noticed around 2024-03-12 10:06 that stuff I was doing earlier were not saved.
It seems like user was working on the same notebook while moving from network to network and the latter changes were not saved using auto-save
We had this problem and in our case it was a networking issue, that is, after briefly shutting / sleeping the laptop we were getting briefly the warning Server unavailable even if the server was on. After getting this message autosave is deactivated and doesn’t work anymore and you need to restart your server.
I will check with my team if we can contribute this upstream, I can’t share the code directly due to company policy, but our solution consisted on updating the connection lost handler.
Thanks for the info , it indeed maybe the case as users do report getting Server unavailable message after connection is restored they do click Dismiss and continue to work.
Do you know what is the Restart button do in this prompt, it seems like it just refreshes the page - can Restart cause loosing the changes?
Did you check if you can contribute on your fix?
Did you change and build your own Jupyterlab or you provided is somehow externally overriding the default handler?
What was the change in logic of the handler?
Thanks
We are allowed to contribute a fix for this! Let’s see if we can have it ready next week
I believe the restart button sends you to hub UI. In our case, the users were losing changes after they open again their laptops and not realising that autosave was not working properly.
Did you change and build your own Jupyterlab or you provided is somehow externally overriding the default handler?
We don’t build our own jupyterlab, we added the change through extensions by overriding the default handler.
What was the change in logic of the handler?
The handler itself is not an issue, the issue comes from the autosave interval increasing to hours after the connection is lost, which isn’t ideal. Our fix is currently in the handler because we have some extra features implemented.
I am super excited you can contribute your fix,
Can you explain how exactly to do you extension override, I tried to try customize the handler but I cannot find the proper way to override and/or build it.
Let say I would just change the text of the current prompt, how can I change and override the extension?