Getting Started

How to get started with Sandbox

1

Install SDK

For E2B, install the SDK using package managers like pip (`pip install e2b-code-interpreter`) or npm (`npm install @e2b/code-interpreter`).

2

Create Sandbox

Use the SDK to create a sandbox instance, for example: `with Sandbox() as sandbox:`.

3

Run Code

Execute code within the sandbox using methods like `sandbox.run_code("x=1")`.

4

Access Output

Retrieve execution results, for example: `print(execution.text)`.