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
Remove the notebook 5.1 check for large uploads #9616
Conversation
In JLab 3, we are using Jupyter Server, which unfortunately advertises its own version as the notebook version (1.2.1, for example). This trips up this notebook version test. Since we do not support the notebook server for JupyterLab 3, we can eliminate the version check entirely. Fixes jupyterlab#9601
Thanks for making a pull request to JupyterLab! To try out this branch on binder, follow this link: |
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.
Thanks!
Ah, there is one failing test that is relevant: https://github.com/jupyterlab/jupyterlab/pull/9616/checks?check_run_id=1697725231#step:9:145 |
eb27f13
to
ea19a45
Compare
ea19a45
to
68a2ef5
Compare
All green now except for the ever-failing services test. |
@blink1073 - if you could re-review after the test changes above, that would be great. Thanks! |
Looks good now, thanks! |
It seems that lab installations using JupyterHub are still running on |
I was under the assumption that jlab 3 only ran on Jupyter server, not on notebook. Am I wrong? |
If I am wrong, then yes indeed this check would need to be added back, if we supported notebook < 5.1 |
My very likely wrong impression is that it runs under whatever is available. I came to think that after the users reports from JupyterHub users (running JupyterLab 3.0 for whom our server extension for |
JupyterHub uses the classic notebook by default, but can be configured to use Jupyter server using an environment variable. JupyterLab can still also run on the classic notebook. |
So the lack of hard breakage seems to be biting the hub users when they try to use an extension with a server component (of note while lab ships both Would it be wise to remove Or, is it intentional to support notebook and should the cookicutter and extensions and this PR be updated? |
Uh-oh. I assumed otherwise. I hope this isn't the only place where I made that assumption. We'll need to put this 5.1 check in if JupyterLab still runs on notebook 5.0. Do we support notebook 5.0, or do we at least assume notebook>=5.1? |
In jupyterlab#9616, I did not realize that JupyterLab still supports the Jupyter Notebook server. This fix supports Jupyter Notebook as a server. Jupyter Server advertises itself as notebook version 1.2 or so at the time of this commit. JupyterLab 2 supports Jupyter Notebook >=4.3.1. Thus we assume that if we get a version number less than 4, we are actually talking to Jupyter Server, and chunked uploading is supported. Eventually this code should be removed when JupyterLab no longer supports Jupyter Notebook server, and hopefully that is before Jupyter Server 4.0.
In jupyterlab#9616, I did not realize that JupyterLab still supports the Jupyter Notebook server. This fix supports Jupyter Notebook as a server. Jupyter Server advertises itself as notebook version 1.2 or so at the time of this commit. JupyterLab 2 supports Jupyter Notebook >=4.3.1. Thus we assume that if we get a version number less than 4, we are actually talking to Jupyter Server, and chunked uploading is supported. Eventually this code should be removed when JupyterLab no longer supports Jupyter Notebook server, and hopefully that is before Jupyter Server 4.0.
Another fix is in #9628 that re-enables the block on notebook < 5.1. |
In jupyterlab#9616, I did not realize that JupyterLab still supports the Jupyter Notebook server. This fix supports Jupyter Notebook as a server. Jupyter Server advertises itself as notebook version 1.2 or so at the time of this commit. JupyterLab 2 supports Jupyter Notebook >=4.3.1. Thus we assume that if we get a version number less than 4, we are actually talking to Jupyter Server, and chunked uploading is supported. Eventually this code should be removed when JupyterLab no longer supports Jupyter Notebook server, and hopefully that is before Jupyter Server 4.0. Fixes jupyterlab#9626
In jupyterlab#9616, I did not realize that JupyterLab still supports the Jupyter Notebook server. This fix supports Jupyter Notebook as a server. Jupyter Server advertises itself as notebook version 1.2 or so at the time of this commit. JupyterLab 2 supports Jupyter Notebook >=4.3.1. Thus we assume that if we get a version number less than 4, we are actually talking to Jupyter Server, and chunked uploading is supported. Eventually this code should be removed when JupyterLab no longer supports Jupyter Notebook server, and hopefully that is before Jupyter Server 4.0. Fixes jupyterlab#9626
References
Fixes #9601
Code changes
In JLab 3, we are using Jupyter Server, which unfortunately advertises its own version as the notebook version (1.2.1, for example). This trips up this notebook version test.
Since we do not support the notebook server for JupyterLab 3, we can eliminate the version check entirely.
I also normalized the spelling of 'canceled' in the error message to what we are using elsewhere in jlab.
User-facing changes
Large uploads (>15MB) are supported in JLab 3.
Backwards-incompatible changes