HopxProvider exposes a run_code method that executes code via a language kernel and captures rich MIME outputs (matplotlib plots, pandas DataFrames, HTML, etc.). E2BProvider has no equivalent, though it is easily extensible using the official E2B Code Interpreter SDK.
The e2b_code_interpreter package provides AsyncSandbox.run_code with identical semantics and is already a declared dependency. E2BProvider should wrap it and expose the same interface as HopxProvider.run_code.
Expected:
await provider.run_code(sandbox_id, code="...")
returns {success, stdout, stderr, exit_code, execution_time, rich_outputs} on E2B sandboxes.
HopxProvider exposes a run_code method that executes code via a language kernel and captures rich MIME outputs (matplotlib plots, pandas DataFrames, HTML, etc.). E2BProvider has no equivalent, though it is easily extensible using the official E2B Code Interpreter SDK.
The e2b_code_interpreter package provides AsyncSandbox.run_code with identical semantics and is already a declared dependency. E2BProvider should wrap it and expose the same interface as HopxProvider.run_code.
Expected:
returns
{success, stdout, stderr, exit_code, execution_time, rich_outputs}on E2B sandboxes.