Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Update docs

Vasek Mlejnsky6ea125aa0969
diff --git a/apps/docs/src/app/sandbox/templates/premade/page.mdx b/apps/docs/src/app/sandbox/templates/premade/page.mdx
index f7cc8318e..d907a2017 100644
--- a/apps/docs/src/app/sandbox/templates/premade/page.mdx
+++ b/apps/docs/src/app/sandbox/templates/premade/page.mdx
@@ -10,7 +10,7 @@ To get your started quickly, we offer two premade sandboxes.
## 1. Default Sandbox
<Link
className="w-fit flex items-center space-x-2 justify-start"
- href="https://github.com/e2b-dev/e2b/blob/main/templates/base/Dockerfile"
+ href="https://github.com/e2b-dev/e2b/blob/main/sandboxes/base/e2b.Dockerfile"
rel="noopener noreferrer"
target="_blank"
>
@@ -34,10 +34,10 @@ The base sandbox has all the features of the [Sandbox API](/api/envs) available.
---
-## 2. Code Interpreter/Data Analysis Sandbox
+## 2. Code Interpreter Sandbox
<Link
className="w-fit flex items-center justify-start space-x-2"
- href="https://github.com/e2b-dev/e2b/blob/main/templates/data_analysis/Dockerfile"
+ href="https://github.com/e2b-dev/e2b/blob/main/sandboxes/code-interpreter/e2b.Dockerfile"
rel="noopener noreferrer"
target="_blank"
>
@@ -50,7 +50,7 @@ The base sandbox has all the features of the [Sandbox API](/api/envs) available.
<div className="pr-1 w-[320px] flex items-center justify-start space-x-2 border border-gray-600 rounded">
<span className="font-mono text-sm w-8 h-8 flex items-center justify-center border-r border-gray-600">id</span>
- <span className="font-mono text-sm text-gray-200">Python3-DataAnalysis</span>
+ <span className="font-mono text-sm text-gray-200">Python3-CodeInterpreter</span>
</div>
### Features
@@ -65,16 +65,16 @@ You can use all the regular [Sandbox API](/api/envs) inside the Code Interpreter
- **Create sandbox**
<CodeGroup isRunnable={false}>
```js {{ language: 'js' }}
-import { DataAnalysis } from '@e2b/sdk'
-const sandbox = await DataAnalysis.create()
+import { CodeInterpreter } from '@e2b/sdk'
+const sandbox = await CodeInterpreter.create()
// Close sandbox once you're done
await sandbox.close()
```
```python {{ language: 'python' }}
-from e2b import DataAnalysis
-sandbox = DataAnalysis()
+from e2b import CodeInterpreter
+sandbox = CodeInterpreter()
# Close sandbox once you're done
sandbox.close()
@@ -84,10 +84,10 @@ sandbox.close()
- **Run Python code**
<CodeGroup isRunnable={false}>
```js {{ language: 'js' }}
-import { DataAnalysis } from '@e2b/sdk'
+import { CodeInterpreter } from '@e2b/sdk'
// 1. Create sandbox
-const sandbox = await DataAnalysis.create()
+const sandbox = await CodeInterpreter.create()
// 2. Get code that was generated by LLM and run it
const llmGeneratedPythonCode = 'print("Hello World")'
@@ -105,10 +105,10 @@ await sandbox.close
```
```python {{ language: 'python' }}
-from e2b import DataAnalysis
+from e2b import CodeInterpreter
# 1. Create sandbox
-sandbox = DataAnalysis()
+sandbox = CodeInterpreter()
# 2. Get code that was generated by LLM and run it
llm_generated_python_code = 'print("Hello World")'
@@ -130,22 +130,22 @@ sandbox.close()
Installs Python packages using `pip`.
<CodeGroup isRunnable={false}>
```js {{ language: 'js' }}
-import { DataAnalysis } from '@e2b/sdk'
+import { CodeInterpreter } from '@e2b/sdk'
// 1. Create sandbox
-const sandbox = await DataAnalysis.create()
+const sandbox = await CodeInterpreter.create()
// 2. Install Python package
-await DataAnalysis.installPythonPackages('ffmpeg')
+await CodeInterpreter.installPythonPackages('ffmpeg')
// 3. Close sandbox
await sandbox.close()
```
```python {{ language: 'python' }}
-from e2b import DataAnalysis
+from e2b import CodeInterpreter
# 1. Create sandbox
-sandbox = DataAnalysis()
+sandbox = CodeInterpreter()
# 2. Install Python package
sandbox.install_python_packages('ffmpeg')
@@ -160,22 +160,22 @@ sandbox.close()
Installs system packages using `apt-get`.
<CodeGroup isRunnable={false}>
```js {{ language: 'js' }}
-import { DataAnalysis } from '@e2b/sdk'
+import { CodeInterpreter } from '@e2b/sdk'
// 1. Create sandbox
-const sandbox = await DataAnalysis.create()
+const sandbox = await CodeInterpreter.create()
// 2. Install system package
-await DataAnalysis.installSystemPackages('ffmpeg')
+await CodeInterpreter.installSystemPackages('ffmpeg')
// 3. Close sandbox
await sandbox.close()
```
```python {{ language: 'python' }}
-from e2b import DataAnalysis
+from e2b import CodeInterpreter
# 1. Create sandbox
-sandbox = DataAnalysis()
+sandbox = CodeInterpreter()
# 2. Install system package
sandbox.install_system_packages('ffmpeg')
@@ -188,11 +188,11 @@ sandbox.close()
{/* - Listen to new files generated by executed code (charts, images, etc)
<CodeGroup isRunnable={false}>
```js {{ language: 'js' }}
-await DataAnalysis.installSystemPackages('ffmpeg')
+await CodeInterpreter.installSystemPackages('ffmpeg')
await sandbox.close()
```
```python {{ language: 'python' }}
-sandbox = DataAnalysis.install_system_packages('ffmpeg')
+sandbox = CodeInterpreter.install_system_packages('ffmpeg')
sandbox.close()
```
</CodeGroup> */}