Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mlejva authored May 1, 2024
1 parent 8c36a5f commit a035a63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ If you want to customize the Code Interprerter sandbox (e.g.: add a preinstalled
sandbox.close()

# Or you can use `with` which handles closing the sandbox for you
with CodeInterpreter("your-custom-sandbox-name") as sandbox:
with CodeInterpreter(template="your-custom-sandbox-name") as sandbox:
execution = sandbox.notebook.exec_cell("print('hello')")
```


**JavaScript/TypeScript**
```js
import { CodeInterpreter } from '@e2b/code-interpreter'
const sandbox = await CodeInterpreter.create('your-custom-sandbox-name')
const sandbox = await CodeInterpreter.create({ template: 'your-custom-sandbox-name' })
const execution = await sandbox.notebook.execCell('print("hello")')
await sandbox.close()
```

0 comments on commit a035a63

Please sign in to comment.