When will TLJH move to JupyterHub 2.0?

Hi, I was wondering if there is a timeline for when TLJH will switch to JupyterHub 2.0? Right now, it uses version 1.5. As far as I understand it’s a major update and there have been changes to configuration and extensions.

As a related question, is there an official way to pin versions? I am running https://tljh.jupyter.org/bootstrap.py from an ansible script and would like to make it reproducable. Is setting TLJH_BOOTSTRAP_PIP_SPEC to a certain commit the right way to go?

Thanks,
Jason

JupyterHub 2 is a breaking upgrade so we need to adding versioning/releases to TLJH before doing so:

For now, I think TLJH_BOOTSTRAP_PIP_SPEC is the best option, but it’s not very user-friendly hence the above issue

1 Like

Ok, thanks for the information! Having versioned releases would be really nice.

Apologies for my naivety: how would one run the TLJH_BOOTSTRAP_PIP_SPEC environmental variable?

Note. I’m using AWS and running the bootstrap code in userdata for an EC2 machine as

#!/bin/bash
curl -L https://raw.githubusercontent.com/jupyterhub/the-littlest-jupyterhub/master/bootstrap/bootstrap.py | sudo python3 -

If I were to have a guess it would be

#!/bin/bash
TLJH_BOOTSTRAP_PIP_SPEC=/opt/tljh curl -L https://raw.githubusercontent.com/jupyterhub/the-littlest-jupyterhub/master/bootstrap/bootstrap.py | sudo python3 -

You need to pass the env-var to the interpreter that’s executing the script, so try something like
curl -L https://raw.githubusercontent.com/jupyterhub/the-littlest-jupyterhub/master/bootstrap/bootstrap.py | sudo TLJH_BOOTSTRAP_PIP_SPEC=... python3 -
Or less confusing, download the script and run sudo TLJH_BOOTSTRAP_PIP_SPEC=... python3 bootstrap.py

1 Like

From Support for JupyterHub 2.0 · Issue #818 · jupyterhub/the-littlest-jupyterhub · GitHub :

  • TST: Create a directory structure for migration tests between TLJH & JupyterHub major versions?