Skip to content

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 numeric/NLP libraries (notably numpy 2.x and scipy), which can introduce binary/API compatibility issues for downstream code and transitive deps.

Overview
Updates the code-interpreter template runtime to Python 3.13 by switching the Docker base image in template/template.py.

Refreshes template/requirements.txt to unblock 3.13 compatibility by bumping key packages (including gensim, numpy to 2.3.5, numba, scipy, and spacy) and adds a changeset marking a minor release for @e2b/code-interpreter-template.

Written by Cursor Bugbot for commit a49b990. 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
nltk==3.9.1
numpy==1.26.4 # bump blocked by gensim
numba==0.61.2
numpy==2.3.5
Copy link
Member

Choose a reason for hiding this comment

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

won't this be a breaking change for somebody?

Copy link
Member Author

Choose a reason for hiding this comment

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

possibly, but there's no way around if we want to be up-to-date - only numpy 2.x support slatest python version

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm assuming where it matters people probably already migrated to numpy 2 not waiting for us here

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