Replace unnecessary code-interpreter import in custom-sandbox-domain-proxy#87
Open
Replace unnecessary code-interpreter import in custom-sandbox-domain-proxy#87
Conversation
…proxy This example only uses sandbox.commands.run(), sandbox.getHost(), and sandbox.kill() — none of which require code-interpreter. Switched to the base e2b SDK.
This example uses the base e2b SDK, not code-interpreter. The README incorrectly referenced "Code Interpreter SDK" in the install section.
Hello-world examples were using code-interpreter just to print "hello world" — a trivial demo that doesn't need Jupyter execution. Switched to base e2b SDK using sandbox.commands.run() instead.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
custom-sandbox-domain-proxyexample to use basee2bSDK instead of@e2b/code-interpretersandbox.commands.run(),sandbox.getHost(), andsandbox.kill()— none of which require code-interpreterWhy
The
@e2b/code-interpreterpackage should only be used whenrunCode()is needed. This example demonstrates domain proxying with sandbox commands and networking, which are all available in the basee2bSDK.Test plan
npm installin the example directory to verify dependency resolvesimport Sandbox from 'e2b'works correctly