File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,12 @@ npm install @e2b/code-interpreter
2121import { Sandbox } from ' @e2b/code-interpreter'
2222
2323const 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
Original file line number Diff line number Diff line change @@ -21,11 +21,10 @@ pip install e2b-code-interpreter
2121from e2b_code_interpreter import Sandbox
2222
2323with 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
You can’t perform that action at this time.
0 commit comments