Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/tangy-grapes-crash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@e2b/code-interpreter-template': minor
---

updated Python version to 3.13
10 changes: 5 additions & 5 deletions template/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ e2b_charts
aiohttp==3.13.3
beautifulsoup4==4.14.3
bokeh==3.8.2
gensim==4.3.3 # unmaintained, blocking numpy and scipy bump
gensim==4.4.0
imageio==2.37.2
joblib==1.5.3
librosa==0.11.0
nltk==3.9.3
numpy==1.26.4 # bump blocked by gensim
numba==0.61.2
numpy==2.3.5
numba==0.63.1
opencv-python==4.11.0.86
openpyxl==3.1.5
plotly==6.0.1
Expand All @@ -32,10 +32,10 @@ pytz==2025.2
requests==2.32.5
scikit-image==0.25.2
scikit-learn==1.6.1
scipy==1.13.1 # bump blocked by gensim
scipy==1.17.0
seaborn==0.13.2
soundfile==0.13.1
spacy==3.8.11 # doesn't work on 3.13.x
spacy==3.8.11
textblob==0.19.0
tornado==6.5.4
urllib3==2.6.3
Expand Down
22 changes: 6 additions & 16 deletions template/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def make_template(
# Start with base template
template = (
Template()
.from_image("python:3.12")
.from_image("python:3.13")
.set_user("root")
.set_workdir("/root")
.set_envs(
Expand Down Expand Up @@ -51,21 +51,11 @@ def make_template(

# Install R Kernel if requested
if "r" in enabled_kernels:
template = (
template.run_cmd(
[
"sudo gpg --keyserver keyserver.ubuntu.com --recv-key 95C0FAF38DB3CCAD0C080A7BDC78B2DDEABC47B7",
"sudo gpg --armor --export 95C0FAF38DB3CCAD0C080A7BDC78B2DDEABC47B7 | sudo tee /etc/apt/trusted.gpg.d/cran_debian_key.asc",
'echo "deb https://cloud.r-project.org/bin/linux/debian trixie-cran40/" | sudo tee /etc/apt/sources.list.d/cran.list',
]
)
.apt_install("r-base=${R_VERSION} r-base-dev")
.run_cmd(
[
"R -e \"install.packages('IRkernel', repos='https://cloud.r-project.org')\"",
"R -e \"IRkernel::installspec(user = FALSE, name = 'r', displayname = 'R')\"",
]
)
template = template.apt_install("r-base=${R_VERSION} r-base-dev").run_cmd(
[
"R -e \"install.packages('IRkernel', repos='https://cloud.r-project.org')\"",
"R -e \"IRkernel::installspec(user = FALSE, name = 'r', displayname = 'R')\"",
]
)

# Install JavaScript Kernel if requested
Expand Down
Loading