We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26517a8 commit 18b3fb0Copy full SHA for 18b3fb0
README.md
@@ -48,9 +48,9 @@ JavaScript / TypeScript
48
import { Sandbox } from '@e2b/code-interpreter'
49
50
const sandbox = await Sandbox.create()
51
-await sbx.runCode()('x = 1')
+await sbx.runCode('x = 1')
52
53
-const execution = await sbx.runCode()('x+=1; x')
+const execution = await sbx.runCode('x+=1; x')
54
console.log(execution.text) // outputs 2
55
```
56
@@ -59,8 +59,8 @@ Python
59
from e2b_code_interpreter import Sandbox
60
61
with Sandbox() as sandbox:
62
- sandbox.run_code()("x = 1")
63
- execution = sandbox.run_code()("x+=1; x")
+ sandbox.run_code("x = 1")
+ execution = sandbox.run_code("x+=1; x")
64
print(execution.text) # outputs 2
65
66
0 commit comments