Skip to content

Update Python 3.13 support and bump dependencies#192

Merged
mishushakov merged 18 commits intomainfrom
mishushakov/update-python-3.13
Mar 12, 2026
Merged

Update Python 3.13 support and bump dependencies#192
mishushakov merged 18 commits intomainfrom
mishushakov/update-python-3.13

Conversation

@mishushakov
Copy link
Member

@mishushakov mishushakov commented Feb 9, 2026

Summary

  • Update template to Python 3.13 base image
  • Bump key packages for Python 3.13 compatibility: numpy 2.3.5, scipy 1.17.0, gensim 4.4.0, numba 0.63.1, spacy 3.8.11
  • Relax e2b_charts numpy constraint to support numpy 2.x

Testing

Build verified with: python template/build_docker.py | docker build ./template -f -

🤖 Generated with Claude Code


Note

Medium Risk
Upgrades the runtime to Python 3.13 and bumps core scientific dependencies (notably numpy/scipy), which can introduce binary/ABI and transitive compatibility issues in the template image.

Overview
Updates the code interpreter template to build from python:3.13 and records a minor release via changeset.

Bumps key Python dependencies in requirements.txt to versions compatible with Python 3.13, including moving to numpy 2.x (2.3.5), scipy 1.17.0, gensim 4.4.0, and numba 0.63.1.

Simplifies the R kernel setup in template.py by removing the explicit CRAN apt-repo/GPG key bootstrap and relying on installing r-base directly before installing IRkernel.

Written by Cursor Bugbot for commit 5bf02a6. This will update automatically on new commits. Configure here.

mishushakov and others added 6 commits February 9, 2026 14:38
Update template to Python 3.13 base image and bump key packages for compatibility:
- numpy 1.26.4 → 2.3.5 (Python 3.13 requires numpy 2.x)
- scipy 1.13.1 → 1.17.0, gensim 4.3.3 → 4.4.0, numba 0.61.2 → 0.63.1, spacy 3.8.2 → 3.8.11
- e2b_charts: relax numpy constraint from ^1.26.4 to >=1.26.4 for numpy 2 compatibility

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The published e2b_charts 0.0.4 on PyPI still has numpy<2.0.0.
Until a new version is published, install it separately with --no-deps.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Keep these files as-is on main; e2b_charts updates will be in a separate PR.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mishushakov
Copy link
Member Author

This PR depends on #193

@mishushakov mishushakov marked this pull request as ready for review February 9, 2026 14:07
@ValentaTomas ValentaTomas removed their request for review March 12, 2026 02:20
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

@mishushakov mishushakov enabled auto-merge (squash) March 12, 2026 16:30
@mishushakov mishushakov merged commit fb13ab0 into main Mar 12, 2026
14 checks passed
@mishushakov mishushakov deleted the mishushakov/update-python-3.13 branch March 12, 2026 16:33
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.

2 participants