Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Add section about premade sandboxes
Vasek Mlejnsky2d1d91356f76
diff --git a/apps/docs/src/app/sandbox/templates/data-analysis/page.mdx b/apps/docs/src/app/sandbox/templates/data-analysis/page.mdxdeleted file mode 100644index 79e36bf5a..000000000--- a/apps/docs/src/app/sandbox/templates/data-analysis/page.mdx+++ /dev/null@@ -1,30 +0,0 @@-# Use premade data analysis sandbox template--You can use our premade template to get started with your data analysis project.---### Using data analysis template in your code--<CodeGroup isRunnable={false}>-```js {{ language: 'js' }}-import { Sandbox } from '@e2b/sdk'--const sandbox = await Sandbox.create({- id: 'Python3-DataAnalysis',-})--await sandbox.close()-```--```python {{ language: 'python' }}-from e2b import Sandbox--sandbox = Sandbox(- id: "Python3-DataAnalysis",-)--sandbox.close()-```-</CodeGroup>--The Dockerfile and template files used to build the template are available [here](https://github.com/e2b-dev/e2b/blob/main/templates/data_analysis/).diff --git a/apps/docs/src/app/sandbox/templates/premade/page.mdx b/apps/docs/src/app/sandbox/templates/premade/page.mdxnew file mode 100644index 000000000..ec3e2df19--- /dev/null+++ b/apps/docs/src/app/sandbox/templates/premade/page.mdx@@ -0,0 +1,35 @@+# Premade Sandboxes++To get your started quickly, we offer a two premade sandboxes.++## `Base`+A "base" sandbox with Nodejs, Python 3, and essentials libraries like `curl`.+- Ideal for getting started with the SDK.+- Inspect the template code [here](https://github.com/e2b-dev/e2b/blob/main/templates/base/Dockerfile).++## `DataAnalysis`+Sandbox with Python 3 and data science Python libraries like `pandas`, `numpy`, `matplotlib`.+- Ideal for the Data Analysis and Code Interpreter use cases.+- Inspect the template code [here](https://github.com/e2b-dev/e2b/blob/main/templates/base/Dockerfile).++<CodeGroup title="Create DataAnalysis sandbox" isRunnable={false}>+```js {{ language: 'js' }}+import { Sandbox } from '@e2b/sdk'++const sandbox = await Sandbox.create({+ id: 'Python3-DataAnalysis',+})++await sandbox.close()+```++```python {{ language: 'python' }}+from e2b import Sandbox++sandbox = Sandbox(+ id="Python3-DataAnalysis",+)++sandbox.close()+```+</CodeGroup>diff --git a/apps/docs/src/components/Navigation/routes.tsx b/apps/docs/src/components/Navigation/routes.tsxindex 19f72cf9e..25395b91d 100644--- a/apps/docs/src/components/Navigation/routes.tsx+++ b/apps/docs/src/components/Navigation/routes.tsx@@ -16,6 +16,7 @@ import {Variable,PencilRuler,File,+ Image as ImageIcon,} from 'lucide-react'export const routes = [@@ -120,7 +121,7 @@ export const routes = [],},{- title: 'Sandbox Templates',+ title: 'Custom Sandboxes',links: [{title: 'Overview',@@ -146,16 +147,16 @@ export const routes = [title: 'Guide: Creating Custom Sandbox',href: '/guide/custom-sandbox',},- // {- // icon: (- // <ImageIcon- // strokeWidth={1}- // size={20}- // />- // ),- // title: 'Premade Templates',- // href: '/sandbox/templates/premade',- // },+ {+ icon: (+ <ImageIcon+ strokeWidth={1}+ size={20}+ />+ ),+ title: 'Premade Sandboxes',+ href: '/sandbox/templates/premade',+ },]},{