Skip to content

Commit 3df6a2e

Browse files
committed
Update packages readme
1 parent 8fc98fb commit 3df6a2e

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

js/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ npm install @e2b/code-interpreter
2121
import { Sandbox } from '@e2b/code-interpreter'
2222

2323
const sandbox = await Sandbox.create()
24-
await sandbox.runCode('x = 1')
24+
await sbx.runCode()('x = 1')
2525

26-
const execution = await sandbox.runCode('x+=1; x')
27-
console.log(execution.text) // outputs 2
26+
const execution = await sbx.runCode()('x+=1; x')
27+
console.log(execution.text) // outputs 2
2828

29-
await sandbox.kill()
29+
await sandbox.close()
3030
```
3131

3232
### Get charts and any display-able data

python/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,10 @@ pip install e2b-code-interpreter
2121
from e2b_code_interpreter import Sandbox
2222

2323
with Sandbox() as sandbox:
24-
sandbox.run_code("x = 1")
24+
sandbox.run_code()("x = 1")
2525

26-
execution = sandbox.run_code("x+=1; x")
26+
execution = sandbox.run_code()("x+=1; x")
2727
print(execution.text) # outputs 2
28-
2928
```
3029

3130
### Get charts and any display-able data

0 commit comments

Comments
 (0)