Skip to content

Commit e6edde7

Browse files
committed
undo some changes to e2b.toml, bring back r kernel
1 parent 9d73789 commit e6edde7

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

template/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ COPY ./requirements.txt requirements.txt
2323
RUN pip install --no-cache-dir -r requirements.txt && ipython kernel install --name "python3" --user
2424

2525
# R Kernel
26-
# RUN curl -O https://cdn.rstudio.com/r/debian-12/pkgs/r-${R_VERSION}_1_amd64.deb && sudo apt-get update && sudo apt-get install -y ./r-${R_VERSION}_1_amd64.deb && ln -s ${R_HOME}/bin/R /usr/bin/R
27-
# RUN R -e "install.packages('IRkernel', repos='https://cloud.r-project.org')"
28-
# RUN R -e "IRkernel::installspec(user = FALSE, name = 'r', displayname = 'R')"
26+
RUN curl -O https://cdn.rstudio.com/r/debian-12/pkgs/r-${R_VERSION}_1_amd64.deb && sudo apt-get update && sudo apt-get install -y ./r-${R_VERSION}_1_amd64.deb && ln -s ${R_HOME}/bin/R /usr/bin/R
27+
RUN R -e "install.packages('IRkernel', repos='https://cloud.r-project.org')"
28+
RUN R -e "IRkernel::installspec(user = FALSE, name = 'r', displayname = 'R')"
2929

3030
# Javascript Kernel
3131
RUN npm install -g node-gyp

template/e2b.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
# This is a config for E2B sandbox template.
2-
# You can use template ID (8cvk102nkxqyd5l3kelv) to create a sandbox:
2+
# You can use template ID (nlhz8vlwyupq845jsdg9) or template name (code-interpreter-v1) to create a sandbox:
33

44
# Python SDK
55
# from e2b import Sandbox, AsyncSandbox
6-
# sandbox = Sandbox("8cvk102nkxqyd5l3kelv") # Sync sandbox
7-
# sandbox = await AsyncSandbox.create("8cvk102nkxqyd5l3kelv") # Async sandbox
6+
# sandbox = Sandbox("code-interpreter-v1") # Sync sandbox
7+
# sandbox = await AsyncSandbox.create("code-interpreter-v1") # Async sandbox
88

99
# JS SDK
1010
# import { Sandbox } from 'e2b'
11-
# const sandbox = await Sandbox.create('8cvk102nkxqyd5l3kelv')
12-
13-
team_id = "400a4584-3d22-4b70-82ee-0bc6cce4aaa5"
11+
# const sandbox = await Sandbox.create('code-interpreter-v1')
12+
team_id = "460355b3-4f64-48f9-9a16-4442817f79f5"
1413
memory_mb = 1_024
1514
start_cmd = "sudo -u user /home/user/.jupyter/start-up.sh"
16-
dockerfile = "Dockerfile"
17-
template_id = "8cvk102nkxqyd5l3kelv"
15+
dockerfile = "e2b.Dockerfile"
16+
template_name = "code-interpreter-v1"
17+
template_id = "nlhz8vlwyupq845jsdg9"

0 commit comments

Comments
 (0)