Conversation
The base e2b package covers commands, files, git, and networking. Code-interpreter should only be installed when runCode()/run_code() is needed. Updated all three READMEs (root, js-sdk, python-sdk) to show base SDK install and usage first, with code-interpreter as a separate step for code execution.
|
Package ArtifactsBuilt from fe192a0. Download artifacts from this workflow run. JS SDK ( npm install ./e2b-2.15.1-fix-code-interpreter-imports.0.tgzCLI ( npm install ./e2b-cli-2.8.3-fix-code-interpreter-imports.0.tgzPython SDK ( pip install ./e2b-2.16.0+fix.code.interpreter.imports-py3-none-any.whl |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0a57c22919
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| JavaScript / TypeScript | ||
| ```ts | ||
| import { Sandbox } from '@e2b/code-interpreter' | ||
| import Sandbox from 'e2b' |
There was a problem hiding this comment.
Use named Sandbox import in quickstart snippet
e2b publishes a CommonJS main entry and no exports map, so in plain Node ESM environments import Sandbox from 'e2b' binds to the module object rather than the Sandbox class; users who copy this snippet can hit Sandbox.create is not a function at runtime. Switching the example to import { Sandbox } from 'e2b' avoids that interop pitfall and matches the SDK’s own API examples.
Useful? React with 👍 / 👎.
README.md
Outdated
| console.log(execution.text) // outputs 2 | ||
| ``` | ||
|
|
||
| ### 4. Check docs |
Summary
e2bSDK install and usage as the defaultrunCode()/run_code()is actually needede2bpackages on npm/PyPIWhy
The base
e2bpackage covers commands, files, git, networking, and sandbox lifecycle. Users who don't need code execution shouldn't be directed to install@e2b/code-interpreter/e2b-code-interpreteras their first step.Test plan
runCode()