Repository navigation
fix: add jupyterhub-singleuser so the image runs under JupyterHub - #21
Merged
Merged
Conversation
The UChicago AF BinderHub starts notebook servers with
`jupyterhub-singleuser`, which is what checks each request with the Hub
(OAuth) in authenticated mode. The ml and mlcpu environments ship
JupyterLab and jupyter_server but no jupyterhub package, so launching
ml-platform from the AF BinderHub fails with:
jupyterhub-singleuser: command not found
The server never comes up, and the hub gives up after its 180s
http_timeout.
Add jupyterhub-singleuser to the shared mlbase feature, pinned to
>=5.4.2,<6:
- >=5.4.2: 5.4.0/5.4.1 can't reach a hub over HTTPS from remote sites.
- <6: stays on the same major version as the AF hub (JupyterHub 5.x).
The lock resolves to jupyterhub-singleuser / jupyterhub-base 5.5.2 in
both ml and mlcpu, plus their conda dependencies (alembic, sqlalchemy,
mako, oauthlib, pamela, certipy, blinker). annotated-types,
cryptography, pydantic, pydantic-core, pyjwt and typing-inspection move
from PyPI to conda-forge because jupyterhub-base requires them as conda
packages; only pydantic (2.13.5 -> 2.14.1) and pydantic-core
(2.46.5 -> 2.50.1) change version.
Regenerated with `CONDA_OVERRIDE_CUDA=12.6 pixi lock` (pixi 0.83.0).
Assisted-by: Claude Code:claude-opus-5-5
kratsg
approved these changes
Nov 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Launching ml-platform from the UChicago AF BinderHub (
binderhub.af.uchicago.edu, curatedml-platform:latest/ml-platform:2026.5) never starts a notebook server. The pod runs, but the container log shows:and the hub gives up after its 180s
http_timeout("Server … didn't respond in 180 seconds").The AF BinderHub starts every server with
jupyterhub-singleuser, and since 2026-11-02 it runs in authenticated mode, wherejupyterhub-singleuserchecks each request with the Hub (OAuth). Themlandmlcpuenvironments have JupyterLab 4.6 / jupyter_server 2.21 but nojupyterhubpackage. No version ofpixi.tomlhas ever included it, so the image can't run as a JupyterHub server. AF's repo2docker build appendix (pip install jupyterhub) doesn't help either, because it isn't applied to repos that ship their ownDockerfile.Change
Add
jupyterhub-singleuser = ">=5.4.2,<6"to[feature.mlbase.dependencies], so both the GPU (ml) and CPU (mlcpu) images get it.>=5.4.2: 5.4.0/5.4.1 can't reach a hub over HTTPS from remote sites.<6: stays on the same major version as the AF hub (JupyterHub 5.x). Without the cap the solver picks 6.1.1.pixi.lockwas regenerated withCONDA_OVERRIDE_CUDA=12.6 pixi lock(pixi 0.83.0). Changes, identical inmlandmlcpu:jupyterhub-singleuser5.5.2,jupyterhub-base5.5.2, and their deps: alembic, sqlalchemy, mako, oauthlib, pamela, certipy, blinkerjupyterhub-baserequires them as conda packages)Nothing else in the lock changes.
Testing
pixi locksolves for both environments with the constraintml-platform-gpu,ml-platform-cpu). I couldn't run the local Docker builds fromCLAUDE.md, so I'm relying on the PR workflow.docker run --rm <image> /app/entrypoint.sh jupyterhub-singleuser --versionreports 5.5.xml-platformref is bumped to the new tag, and launching it starts a serverFollow-up (AF side)
After release, bump the curated refs in
maniaclab/flux_appsaf/binderhub/files/hub/jhub_spawner_config.yaml(ml-platform:2026.5→ the new tag), so BinderHub rebuilds the image.🤖 Generated with Claude Code