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

Prevent upgrade of jupyterhub #5

Open
chbrandt opened this issue Jun 29, 2023 · 0 comments
Open

Prevent upgrade of jupyterhub #5

chbrandt opened this issue Jun 29, 2023 · 0 comments

Comments

@chbrandt
Copy link
Member

If we do a conda update conda, many things can happen, besides upgrading the conda manager itself... pip can be uninstalled (conda/conda#10887), other packages can be updated as well.

We don't want, though, to update jupyterhub because its version should match that of the server.
So, we have to pin it to whatever version is used.

Can be done like that:

(base) jovyan:/work$ echo "jupyterhub $JUPYTERHUB_VERSION" >> $CONDA_PREFIX/conda-meta/pinned 

or like that (the actual version installed...should be the same as JUPYTERHUB_VERSION):

(base) jovyan:/work$ echo "jupyterhub $(jupyterhub --version)" >> $CONDA_PREFIX/conda-meta/pinned 

Causing file pinned to be:

(base) jovyan:/work$ cat $CONDA_PREFIX/conda-meta/pinned 
python 3.10.9
jupyterhub 3.0.0
(base) jovyan:/work$ echo $CONDA_PREFIX/
/opt/conda/
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

No branches or pull requests

1 participant