Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Update guides

Vasek Mlejnsky6a64a7c53f09
diff --git a/apps/docs/src/app/hello-world/js/page.mdx b/apps/docs/src/app/hello-world/js/page.mdx
index ed3dc8e89..a91df1ee0 100644
--- a/apps/docs/src/app/hello-world/js/page.mdx
+++ b/apps/docs/src/app/hello-world/js/page.mdx
@@ -28,7 +28,9 @@ Check out the [SDK's repository on GitHub](https://github.com/e2b-dev/code-inter
<CodeGroup isRunnable={false}>
```bash {{ language: 'javascript' }}
-npm i @e2b/code-interpreter
+npm init -y \
+&& npm i --save-dev typescript tsx @types/node \
+&& npm i @e2b/code-interpreter
```
</CodeGroup>
@@ -227,7 +229,14 @@ run()
```
</CodeGroup>
-You should see similar results to this:
+After running your code with the following command
+<CodeGroup isRunnable={false}>
+```bash {{ language: 'bash' }}
+$ npm run start
+```
+</CodeGroup>
+
+you should see similar results to this:
```sh
stdout=['The median male height is 175.5 cm\n'] stderr=[]
@@ -241,7 +250,8 @@ We got our median in the logs (`stdout`, and `stderr`) but we also something int
## 6. Save generated chart
-This looks like a plot. Let's save it to a file. Update the `run()` function like this.
+This looks like a plot. Let's save it to a file. Update the `run()` function like this,
+and run the code again with `npm run start` in your terminal.
<CodeGroup isFileName title="index.ts" isRunnable={false}>
```ts {{ language: 'javscript' }}
async function run() {
@@ -288,7 +298,7 @@ run()
```
</CodeGroup>
-The chart got saved to the `chart.png` file and it should look similar to this:
+The chart got saved in the `chart.png` file and it should look similar to this:
<Image
src={imgChart}
diff --git a/apps/docs/src/app/hello-world/py/page.mdx b/apps/docs/src/app/hello-world/py/page.mdx
index 9e06ad28f..2800f6af1 100644
--- a/apps/docs/src/app/hello-world/py/page.mdx
+++ b/apps/docs/src/app/hello-world/py/page.mdx
@@ -236,7 +236,7 @@ This looks like a plot. Let's save it to a file. Add the following to the end of
```
</CodeGroup>
-The chart was saved to the `chart.png` file and it should look similar to this:
+The chart was saved in the `chart.png` file and it should look similar to this:
<Image
src={imgChart}