This release is a pre-release and may not be stable for production use.
BoxFab Code Interpreter: run AI-generated code in BoxFab sandboxes, Jupyter-style
pip install boxfab-code-interpreter==0.1.0a2 Copy PIP instructions
Run AI-generated code in isolated BoxFab sandboxes, Jupyter-style: Python, JavaScript, TypeScript, R, Java and Bash, with results such as text, tables and charts returned as data.
from boxfab_code_interpreter import Sandbox with Sandbox.create() as sandbox: sandbox.run_code("x = 1") execution = sandbox.run_code("x+=1; x") print(execution.text) # outputs 2 4. Bind the configuration to a client The top-level Sandbox and AsyncSandbox exports read their configuration from the environment variables. To use an explicit configuration — e.g. several API keys or domains in one process — create a BoxFab client and use the resource classes it exposes:
Sandboxes are created from the code-interpreter-v1 template, which BoxFab provides to every team: a Jupyter server with common data-science packages. BoxFab sandboxes are Firecracker microVMs, run on the open-source E2B sandbox infrastructure. This package is derived from the open-source E2B Code Interpreter SDK; UPSTREAM.md lists every change.
Using the E2B Code Interpreter SDKs. BoxFab serves the same API and provides the code-interpreter-v1 template, so the E2B Code Interpreter SDKs work with it as well. Set both variables, the domain first:
export E2B_DOMAIN=us-west.boxfab.dev export E2B_API_KEY=" " Without E2B_DOMAIN, the E2B SDKs send requests, including the key, to E2B's own service.
Tested against BoxFab with e2b-code-interpreter 2.11.6 (Python) and @e2b/code-interpreter 2.9.0 (JavaScript).
MIT, as the E2B Code Interpreter SDK it is derived from; see LICENSE.
Both files in this release have provenance metadata.
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Both files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




