From bb28eb5ec8ef13e0e1358d52780908f389b2d9a3 Mon Sep 17 00:00:00 2001 From: Vasek Mlejnsky Date: Wed, 16 Oct 2024 04:10:23 -0700 Subject: [PATCH] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5b9626ff3..b124b6546 100644 --- a/README.md +++ b/README.md @@ -51,9 +51,9 @@ JavaScript / TypeScript import { Sandbox } from '@e2b/code-interpreter' const sandbox = await Sandbox.create() -await sbx.runCode()('x = 1') +await sbx.runCode('x = 1') -const execution = await sbx.runCode()('x+=1; x') +const execution = await sbx.runCode('x+=1; x') console.log(execution.text) // outputs 2 ``` @@ -62,8 +62,8 @@ Python from e2b_code_interpreter import Sandbox with Sandbox() as sandbox: - sandbox.run_code()("x = 1") - execution = sandbox.run_code()("x+=1; x") + sandbox.run_code("x = 1") + execution = sandbox.run_code("x+=1; x") print(execution.text) # outputs 2 ```