@@ -44,7 +44,7 @@ import { Sandbox } from '@e2b/code-interpreter'
4444const sandbox = await Sandbox .create () // Starts in Running state
4545
4646// Pause the sandbox
47- await sandbox .pause () // Running → Paused
47+ await sandbox .betaPause () // Running → Paused
4848
4949// Resume the sandbox
5050await sandbox .connect () // Running/Paused → Running
@@ -59,7 +59,7 @@ from e2b_code_interpreter import Sandbox
5959sandbox = Sandbox.create() # Starts in Running state
6060
6161# Pause the sandbox
62- sandbox.pause () # Running → Paused
62+ sandbox.beta_pause () # Running → Paused
6363
6464# Resume the sandbox
6565sandbox.connect() # Running/Paused → Running
@@ -81,7 +81,7 @@ console.log('Sandbox created', sbx.sandboxId)
8181
8282// Pause the sandbox
8383// You can save the sandbox ID in your database to resume the sandbox later
84- await sbx .pause ()
84+ await sbx .betaPause ()
8585console .log (' Sandbox paused' , sbx .sandboxId )
8686```
8787``` python Python highlight={8-9}
@@ -92,8 +92,8 @@ print('Sandbox created', sbx.sandbox_id)
9292
9393# Pause the sandbox
9494# You can save the sandbox ID in your database to resume the sandbox later
95- sbx.pause ()
96- print (' Sandbox paused' , sbx.sandbox_id)
95+ sbx.beta_pause ()
96+ print (' Sandbox paused' , sbx.sandbox_id)
9797```
9898</CodeGroup >
9999
@@ -111,7 +111,7 @@ console.log('Sandbox created', sbx.sandboxId)
111111
112112// Pause the sandbox
113113// You can save the sandbox ID in your database to resume the sandbox later
114- await sbx .pause ()
114+ await sbx .betaPause ()
115115console .log (' Sandbox paused' , sbx .sandboxId )
116116
117117// Connect to the sandbox (it will automatically resume the sandbox, if paused)
@@ -126,7 +126,7 @@ print('Sandbox created', sbx.sandbox_id)
126126
127127# Pause the sandbox
128128# You can save the sandbox ID in your database to resume the sandbox later
129- sbx.pause ()
129+ sbx.beta_pause ()
130130print (' Sandbox paused' , sbx.sandbox_id)
131131
132132# Connect to the sandbox (it will automatically resume the sandbox, if paused)
@@ -184,7 +184,7 @@ console.log('Sandbox created', sbx.sandboxId)
184184
185185// Pause the sandbox
186186// You can save the sandbox ID in your database to resume the sandbox later
187- await sbx .pause ()
187+ await sbx .betaPause ()
188188
189189// Remove the sandbox
190190await sbx .kill ()
@@ -198,7 +198,7 @@ from e2b_code_interpreter import Sandbox
198198sbx = Sandbox.create()
199199
200200# Pause the sandbox
201- sbx.pause ()
201+ sbx.beta_pause ()
202202
203203# Remove the sandbox
204204sbx.kill()
@@ -234,7 +234,7 @@ Sandboxes automatically pause when they've been idle, preserving their full stat
234234import { Sandbox } from ' @e2b/code-interpreter'
235235
236236// Create sandbox with auto-pause enabled
237- const sandbox = await Sandbox .create ({
237+ const sandbox = await Sandbox .betaCreate ({
238238 autoPause: true ,
239239 timeoutMs: 10 * 60 * 1000 // Optional: change the default timeout (10 minutes)
240240})
@@ -243,7 +243,7 @@ const sandbox = await Sandbox.create({
243243from e2b_code_interpreter import Sandbox
244244
245245# Create sandbox with auto-pause enabled
246- sandbox = Sandbox.create (
246+ sandbox = Sandbox.beta_create (
247247 auto_pause = True , # Auto-pause after the sandbox times out
248248 timeout = 10 * 60 , # Optional: change the default timeout (10 minutes)
249249)
@@ -259,15 +259,15 @@ If you `.kill()` the sandbox, it will be permanently deleted and you won't be ab
259259import { Sandbox } from ' @e2b/code-interpreter'
260260
261261// Create sandbox with auto-pause enabled
262- const sandbox = await Sandbox .create ({
262+ const sandbox = await Sandbox .betaCreate ({
263263 autoPause: true // Auto-pause after the sandbox times out
264264})
265265```
266266``` python Python
267267from e2b_code_interpreter import Sandbox
268268
269269# Create sandbox with auto-pause enabled
270- sandbox = Sandbox.create (
270+ sandbox = Sandbox.beta_create (
271271 auto_pause = True # Auto-pause after the sandbox times out
272272)
273273```
0 commit comments