Skip to content
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

Send filepath urls to JupyterLab instead of classic notebook #1288

Merged
merged 1 commit into from
Sep 8, 2021

Conversation

SylvainCorlay
Copy link
Contributor

Now that JupyterLab 3 has been out for some time, and most lab extensions have been updated to work well with that version, it might be a good time to make the switch from classic notebook to lab.

In this PR, I am changing the default redirect URL from tree to doc/tree to enable the JupyterLab "simple mode" that is the closest to the classic notebook user interface (doc).

@welcome
Copy link

welcome bot commented Apr 8, 2021

Thanks for submitting your first pull request! You are awesome! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please make sure you followed the pull request template, as this will help us review your contribution more quickly.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also a intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@SylvainCorlay
Copy link
Contributor Author

We could eventually decide to start the jupyterlab server instead of using the server extension, but I am not doing this now so that users can opt out.

@manics
Copy link
Member

manics commented Apr 8, 2021

I created an issue in repo2docker a few weeks ago to discuss the transition, I think we should keep repo2docker and binderhub in sync if possible:
jupyterhub/repo2docker#1026

@SylvainCorlay
Copy link
Contributor Author

I created an issue in repo2docker a few weeks ago to discuss the transition, I think we should keep repo2docker and binderhub in sync if possible:
jupyterhub/repo2docker#1026

Thanks! I missed that one.

I think we should keep repo2docker and binderhub in sync if possible.

My understanding is that the main thing to change in repo2docker would be in the start_container function to start jupyter lab instead of jupyter notebook. (Would there be anything else?) However some users might prefer to keep the notebook command for a while to be able to opt out completely until any issue that arises is resolved.

@betatim
Copy link
Member

betatim commented Apr 10, 2021

Is it a ridiculous idea to modify the default URL generated by BinderHub (https://mybinder.org/v2/gh/binder-examples/requirements/HEAD?urlpath=doc/tree instead of https://mybinder.org/v2/gh/binder-examples/requirements/HEAD) to include the new URL path instead of changing the behaviour when no URL path is specified?

@minrk minrk changed the title Default to JupyterLab instead of classic notebook Send filepath urls to JupyterLab instead of classic notebook Apr 26, 2021
Copy link
Member

@manics manics left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As explained in jupyterhub/repo2docker#1026 (comment) this PR only changes the URLs generated for the filepath option, and therefore only affects new URLs, so I think it's fine to merge.

However perhaps we should hold off until our binder-examples are updated to JupyterLab 3.0? I just tried to check how /doc/tree appears with https://github.com/binder-examples/conda, then discovered it's still using a cached image with JupyterLab 2.

@minrk
Copy link
Member

minrk commented Apr 27, 2021

How long have we been building with jupyterlab 3? Maybe we should do an image cache clean of images older than that?

@manics
Copy link
Member

manics commented Apr 27, 2021

jupyterhub/mybinder.org-deploy#1839 was merged on 18 Feb.

@SylvainCorlay
Copy link
Contributor Author

Let me know if anything else is needed from me in this PR!

@SylvainCorlay
Copy link
Contributor Author

It could be quite interesting to get this in, especially with lab 3.1 being out!

@welcome
Copy link

welcome bot commented Sep 8, 2021

Congrats on your first merged pull request in this project! 🎉
congrats
Thank you for contributing, we are very proud of you! ❤️

consideRatio pushed a commit to jupyterhub/helm-chart that referenced this pull request Sep 8, 2021
jupyterhub/binderhub#1288 Merge pull request #1288 from SylvainCorlay/default-to-lab
@SylvainCorlay SylvainCorlay deleted the default-to-lab branch September 8, 2021 10:23
@agitter
Copy link

agitter commented Sep 16, 2021

I support migrating to JupyterLab, but I wanted to note that this change breaks some existing Binder links. I was teaching a workshop today and participants got a 404 error with the URL https://mybinder.org/v2/gh/carpentries-incubator/ml4bio-workshop/gh-pages?filepath=illustration.ipynb

It took some digging to find this pull request and change the URL to https://mybinder.org/v2/gh/carpentries-incubator/ml4bio-workshop/gh-pages?urlpath=tree/illustration.ipynb to revert to the previous behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants