Install ipywidgets into the image kernel environment - #207
Merged
Conversation
Three tutorial groups failed verification on the 3.13 rebuild with "IProgress not found": tqdm routes to its widget progress bar inside an IPython session and needs ipywidgets, which Colab preinstalls and the image did not. A user running those notebooks in the container would have hit the same error in JupyterLab. ipywidgets now resolves jointly with the pins alongside ipykernel, matching what the CI harness installs in kernel mode. Verified locally on tutorials-cosyne-2023. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011NuStoQykizhQCx2KBrMCN
Contributor
|
Preview for this PR has been removed (PR closed). |
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.
The post-merge rebuild on the 3.13 base (run 32609809895) failed verification for three tutorial groups (cosyne-2023, neurodatarehack-2024 simple and advanced search) with
ImportError: IProgress not found. The cause is the same one I fixed for the CI harness in #206:tqdmroutes to its widget progress bar inside an IPython session and needsipywidgets, which Colab preinstalls and the image did not. These notebooks previously passed only because their older pin sets happened to pull ipywidgets in transitively.This is a user-facing problem as well as a verification one: JupyterLab in the container would raise the same error for anyone running those notebooks.
ipywidgetsnow resolves jointly with the pins alongsideipykernel, so it is part of the kernel environment the same way it is on Colab, and any conflict with a pin set fails the build rather than silently changing a version.The Dockerfile is part of the build hash, so merging this rebuilds every image; groups already published on 3.13 will rebuild and re-verify but their content does not change. Verified locally by building
tutorials-cosyne-2023and running the verify step as CI does:ok: true, ipywidgets 8.1.9.🤖 Generated with Claude Code
https://claude.ai/code/session_011NuStoQykizhQCx2KBrMCN