Skip to content

TurnerLab 001636: pin numpy to 2.0.2 (match Colab runtime) - #173

Merged
bendichter merged 1 commit into
masterfrom
turner-numpy-202
Jun 15, 2026
Merged

bendichter merged 1 commit into
masterfrom
turner-numpy-202

Conversation

@bendichter

Copy link
Copy Markdown
Member

Colab 2026.04 ships numpy 2.0.2 on Python 3.12. The TurnerLab 001636 notebooks pinned numpy==2.2.6, which forces an in-kernel numpy upgrade (and a runtime restart) when run on Colab.

Nothing in the dependency graph requires >2.0 — numba==0.65.1 (the tightest constraint) allows numpy>=1.22,<2.5 — so 2.0.2 resolves cleanly with the full jax / numba / nemos / pynapple GLM stack unchanged. The 2.2.6 value was a free choice in environment.yml, not a requirement.

Change

Edits the numpy pin only in each install cell and environment.yml; the rest of the Colab-matched lock (incl. the ipython==7.34.0 jupyter stack) is untouched.

Verification

All four notebooks executed end-to-end via .github/scripts/run_notebook.py with numpy 2.0.2 → ok: true:

Notebook Result
turner_m1_glm (numba + jax GLM fit) ✅ 92s
turner_m1_peth ✅ 25s
turner_m1_usage ✅ 34s
antidromic_detection_tutorial ✅ 32s

🤖 Generated with Claude Code

Colab 2026.04 ships numpy 2.0.2 on Python 3.12; the notebooks pinned
2.2.6, forcing an in-kernel numpy upgrade (and restart) on Colab. Nothing
in the dependency graph requires >2.0 — numba 0.65.1, the tightest
constraint, allows numpy>=1.22,<2.5 — so 2.0.2 resolves cleanly with the
full jax/numba/nemos/pynapple GLM stack unchanged.

Edits the numpy pin only (install cells + environment.yml); the rest of the
Colab-matched lock is untouched. All four notebooks verified end-to-end via
.github/scripts/run_notebook.py (ok: true): turner_m1_glm, turner_m1_peth,
turner_m1_usage, antidromic_detection_tutorial.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@review-notebook-app

Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@github-actions

github-actions Bot commented Jun 15, 2026 •

Copy link
Copy Markdown
Contributor

Preview for this PR has been removed (PR closed).

github-actions Bot added a commit that referenced this pull request Jun 15, 2026
@bendichter
bendichter merged commit 90824f5 into master Jun 15, 2026
8 checks passed
github-actions Bot added a commit that referenced this pull request Jun 15, 2026
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

Successfully merging this pull request may close these issues.

1 participant