File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ If you want to customize the Code Interprerter sandbox (e.g.: add a preinstlled
2424 from e2b_code_interpreter import CodeInterpreter
2525 sandbox = CodeInterpreter("your-custom-sandbox-name" )
2626 execution = sandbox.notebook.exec_cell("print('hello')" )
27+ sandbox.close()
2728
2829 # Or you can use `with`
2930 with CodeInterpreter("your-custom-sandbox-name" ) as sandbox:
@@ -36,4 +37,5 @@ If you want to customize the Code Interprerter sandbox (e.g.: add a preinstlled
3637 import { CodeInterpreter } from ' @e2b/code-interpreter'
3738 const sandbox = await CodeInterpreter .create (' your-custom-sandbox-name' )
3839 const execution = await sandbox .notebook .execCell (' print("hello")' )
40+ await sandbox .close ()
3941 ```
You can’t perform that action at this time.
0 commit comments