-
Notifications
You must be signed in to change notification settings - Fork 3k
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
base-notebook: stop installing nodejs from conda-forge #2172
Conversation
nodejs was a conda dependency of jupyterhub, but by installing jupyterhub-base we no longer need it and could opt to remove it. By doing this, building base-notebook led to a reported size reduction from 974MB to 828MB, which is a 146MB / 15% size reduction.
@mathbunnyru @consideRatio @yuvipanda @manics please vote here: 👍 or 👎 We need 2 positive votes to accept this change. |
That's great! |
I've checked and the latest published image is using the proper
|
@consideRatio why are we using |
I understand the difference to also bundling with jupyterlab as a dependency when using jupyterhub-singleuser conda-forge package, i figure the general practice should be to install -base if using conda-forge, and then add the UI of preference etc |
So, in our case, it will be the same thing in the end no matter what we use (because we're installing |
Yes i think so |
Then I think it's better to use We're using @consideRatio @ykazakov what do you think? |
I researched this a little bit and found it a little confusing that the It now seems like your intuition makes more sense! The package |
@minrk do you have a recommendation here about pinning juoyterhub-base vs juoyterhub-singleuser? I have a guess that jupyterhub-singleuser was initially used, and then jupyterhub-base came when it wasnt a good assumption that jupyterlab was required or similar, so in that sense, it be more relevant to encourage use of jupyterhub-base than -singleuser? |
I agree. Looks like the package |
The conda
I'd say |
There's no real downside to |
Thanks, everyone! If there are no real downsides to using I'm 100% sure it will be more clear for people who don't know the nuances of these packages what's going on. And even for those who do, it still looks clear - we want to run singleuser instances, so we install |
I'll be a little more precise: there are no real downsides to JupyterHub-singleuser here because we install JupyterLab. The only real downside is that it excludes valid singleuser environments that don't want to include JupyterLab. |
@consideRatio @mathbunnyru Just an idea. Would it make sense to add the dependency on I think every image in this repository has |
It's a whole different discussion, to be honest.
This is likely to break so many users.
That's not true. We already have So I don't think this change would solve any problem, but will definitely break many installations. |
Note that jupyterhub-base is really whats the foundational need for this image, where jupyterhub-singleuser the conda-forge package is building on jupyterhub-base by also adding a depdendency on jupyterlab - but the jupyterhub-singleuser command is provided by jupyterhub-base conda-forge package.
Co-authored-by: Ayaz Salikhov <[email protected]>
Great, thanks. I will merge this when tests pass (should take around an hour). |
Describe your changes
nodejs was a conda dependency of jupyterhub, but by installing
jupyterhub-base we no longer need it and could opt to remove it.
By doing this, building base-notebook led to a reported size reduction
from 974MB to 828MB, which is a 146MB / 15% size reduction.
Issue ticket if applicable
Checklist (especially for first-time contributors)
I removed a test related to
npm
, dependency ofnodejs
conda-forge package.