Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Add quickstart example to docs
Vasek Mlejnsky3893b19cfae0
diff --git a/apps/docs/src/app/page.mdx b/apps/docs/src/app/page.mdxindex 1dde52844..8e278be89 100644--- a/apps/docs/src/app/page.mdx+++ b/apps/docs/src/app/page.mdx@@ -14,7 +14,9 @@ With code interpreting, you can build apps like:- AI tutors- Reasoning modules for LLM-## Install Code Interpreter SDK+## Quickstart++### 1. Install SDK<CodeGroup isRunnable={false}>```bash {{ language: 'js' }}npm i @e2b/code-interpreter@@ -24,6 +26,32 @@ pip install e2b_code_interpreter```</CodeGroup>-## Hello World example-Check out the [JavaScript](/hello-world/js) and [Python](/hello-world/py) Hello World guides to get started. {{ className: 'lead' }}+### 2. Execute code with code interpreter inside sandbox+<CodeGroup isRunnable={false}>+```ts {{ language: 'js' }}+import { CodeInterpreter } from '@e2b/code-interpreter'++const sandbox = await CodeInterpreter.create()+await sandbox.notebook.execCell('x = 1')++const execution = await sandbox.notebook.execCell('x+=1; x')+console.log(execution.text) // outputs 2++await sandbox.close()+```++```py {{ language: 'python' }}+from e2b_code_interpreter import CodeInterpreter++with CodeInterpreter() as sandbox:+ sandbox.notebook.exec_cell("x = 1")++ execution = sandbox.notebook.exec_cell("x+=1; x")+ print(execution.text) # outputs 2+```+</CodeGroup>+++### 3. Hello World guide+Dive depeer and check out the [JavaScript](/hello-world/js) and [Python](/hello-world/py) the Hello World guides to learn how to connect code interpreter LLMs. {{ className: 'lead' }}