jupyterlab-hub icon indicating copy to clipboard operation
jupyterlab-hub copied to clipboard

Usability quark

Open tkinz27 opened this issue 8 years ago • 8 comments

This is not really a bug, but rather a usability issue that I have seen. Currently when a user clicks on the hub menu --> control panel, the jupyterhub control panel opens in a new tab/window and leaves the current jupyterlab session open. If the user then clicks on stop my server from the control panel with the jupyterlab session open, the notebook server will get torn down, but then spawned up pretty much immediately afterwards because the existing jupyterlab session in the other tab is trying to hit the old notebook server. So now a new notebook server is started up but without the users knowledge.

tkinz27 avatar Aug 25 '17 22:08 tkinz27

It also happens on my cluster. Changing '_blank' to '_self' in window.open on line 59 and 67 would solve this.

ktong avatar Aug 30 '17 16:08 ktong

Next action: Test this using JupyterHub 0.8.

willingc avatar Oct 11 '17 16:10 willingc

It has same behavior in Jupyterhub 0.8.0

ktong avatar Oct 11 '17 19:10 ktong

I'm not sure what the right solution is here. Setting the target to _self seems like the wrong thing to do because you would lose any JupyterLab application state that doesn't persist across page loads.

blink1073 avatar Oct 11 '17 19:10 blink1073

Wouldn't the act of navigating away from the page bring up the alert box asking the user if they are sure they want to do that and warning them they could lose state? Not sure if that is a browser specific feature or something that is actually coded into the lab application, but if I try to close the jupyterlab window I get an alert each time.

I was thinking about maybe embedding the jupyterhub actions into commands in jupyterlab so you never actually have to leave the main UI, but that seemed like it would have a weird workflow.

tkinz27 avatar Oct 11 '17 20:10 tkinz27

@tkinz27, yes, that is the ideal scenario. However, even with our core extensions I'm sure there are places where restore doesn't work 100%. Having the hub actions in a panel, where stopping the server also calls window.close() might work.

blink1073 avatar Oct 11 '17 20:10 blink1073

Is this still an issue? What is the behavior in JupyterHub 0.9 ?

consideRatio avatar Aug 05 '18 01:08 consideRatio

I would like to add that this is confusing when you restart your server, e.g. if a new image is available. The usage is stop followed by a start at which point you are prompted for a workspace URL, because the old (Lab) window is open in another tab. I don't think a target is necessary in this case. If you lose work, it's probably ok, because stopping a server is a user initiated action.

robnagler avatar Nov 19 '18 19:11 robnagler