-
Notifications
You must be signed in to change notification settings - Fork 395
lab default only if available, change filepath
definition
#1383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
fully overrideable with singleuser.cmd, singleuser.defaultUrl
- old filepath urls still open classic UI - form produces new `?labpath=` arg when a file path is chosen lab is still 'default', but choice is frozen at link-creation time instead of at visit-time
looks like pre-commit ci is running, despite no config (#1381) |
I've now disabled pre-commit.ci again in https://github.com/organizations/jupyterhub/settings/installations/17782968/update! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I support the suggested intentions, and the code changes looks good to me. I've raised a question and made a code suggestion about a comment but otherwise I consider this ready for merge.
Check for final solution with jupyterhub/binderhub#1383
Co-authored-by: Erik Sundell <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Not sure about the test failure though.
test failure was a DNS failure to resolve discourse.jupyter.org, the kind of once-in-a-while CI networking issue that just happens sometimes. I don't think it's related. Relaunched anyway, though. |
I'd like to merge this directly if tests succeed. I believe it is a very relevant fix and we see above that it has been referenced as something awaited as a fix. |
all green |
Thank you so much for your work on this @minrk!!! ❤️ 🎉 |
jupyterhub/binderhub#1383 Merge pull request #1383 from minrk/detect-lab-default
Changes
?filepath
definition from "open with current UI" to "open with classic notebook" to match apparent user expectations.two pieces of #1368 :
?labpath
instead of?filepath
.filepath
is permanently frozen to mean/tree/...
with the classic UI?labpath
url, not afilepath
urlsingleuser.cmd
so that we can set lab as the default url if jupyterlab 3 is availableIf no filepath is specified, and lab 3 is available, lab is still the default UI, leaving it the only link with changed behavior.
@betatim proposed reserving lab-by-default to
/v3/
to make the UI change fully explicit and opt-in. I think that if we go all the way to defining av3
url, we should also change the server launch command tojupyter lab
instead ofjupyter notebook
, because we know that change will be significantly more disruptive, and is also going to happen eventually. It's also a lot simpler to say "v3 starts jupyterlab" than the UI is changed, but the server is not.We specifically chose this 'only switch default ui' to avoid breaking existing links, so if we are making new links, I think we should update the server command to the current standard, too, rather than having to do this all over again in a few months.
I think we can also communicate a lot better (and take some steps) to address the fact that UI customizations (extensions and such) are very often broken by repo2docker updates, because repo2docker sets the UI versions, not the user. The user may pin down UI, but this can break things, too. There is no good answer for now for stable links with extensions that don't need upkeep by the user.