Skip to content

Commit ced28e2

Browse files
authored
Merge branch 'main' into jupyter-supervisord
2 parents 535057c + fb13ab0 commit ced28e2

3 files changed

Lines changed: 16 additions & 21 deletions

File tree

.changeset/tangy-grapes-crash.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@e2b/code-interpreter-template': minor
3+
---
4+
5+
updated Python version to 3.13

template/requirements.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ e2b_charts
1515
aiohttp==3.13.3
1616
beautifulsoup4==4.14.3
1717
bokeh==3.8.2
18-
gensim==4.3.3 # unmaintained, blocking numpy and scipy bump
18+
gensim==4.4.0
1919
imageio==2.37.2
2020
joblib==1.5.3
2121
librosa==0.11.0
2222
nltk==3.9.3
23-
numpy==1.26.4 # bump blocked by gensim
24-
numba==0.61.2
23+
numpy==2.3.5
24+
numba==0.63.1
2525
opencv-python==4.11.0.86
2626
openpyxl==3.1.5
2727
plotly==6.0.1
@@ -32,10 +32,10 @@ pytz==2025.2
3232
requests==2.32.5
3333
scikit-image==0.25.2
3434
scikit-learn==1.6.1
35-
scipy==1.13.1 # bump blocked by gensim
35+
scipy==1.17.0
3636
seaborn==0.13.2
3737
soundfile==0.13.1
38-
spacy==3.8.11 # doesn't work on 3.13.x
38+
spacy==3.8.11
3939
textblob==0.19.0
4040
tornado==6.5.4
4141
urllib3==2.6.3

template/template.py

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def make_template(
99
# Start with base template
1010
template = (
1111
Template()
12-
.from_image("python:3.12")
12+
.from_image("python:3.13")
1313
.set_user("root")
1414
.set_workdir("/root")
1515
.set_envs(
@@ -52,21 +52,11 @@ def make_template(
5252

5353
# Install R Kernel if requested
5454
if "r" in enabled_kernels:
55-
template = (
56-
template.run_cmd(
57-
[
58-
"sudo gpg --keyserver keyserver.ubuntu.com --recv-key 95C0FAF38DB3CCAD0C080A7BDC78B2DDEABC47B7",
59-
"sudo gpg --armor --export 95C0FAF38DB3CCAD0C080A7BDC78B2DDEABC47B7 | sudo tee /etc/apt/trusted.gpg.d/cran_debian_key.asc",
60-
'echo "deb https://cloud.r-project.org/bin/linux/debian trixie-cran40/" | sudo tee /etc/apt/sources.list.d/cran.list',
61-
]
62-
)
63-
.apt_install("r-base=${R_VERSION} r-base-dev")
64-
.run_cmd(
65-
[
66-
"R -e \"install.packages('IRkernel', repos='https://cloud.r-project.org')\"",
67-
"R -e \"IRkernel::installspec(user = FALSE, name = 'r', displayname = 'R')\"",
68-
]
69-
)
55+
template = template.apt_install("r-base=${R_VERSION} r-base-dev").run_cmd(
56+
[
57+
"R -e \"install.packages('IRkernel', repos='https://cloud.r-project.org')\"",
58+
"R -e \"IRkernel::installspec(user = FALSE, name = 'r', displayname = 'R')\"",
59+
]
7060
)
7161

7262
# Install JavaScript Kernel if requested

0 commit comments

Comments
 (0)