code-interpreter
Python & JS/TS SDK for running AI-generated code/code interpreting in your AI app
File Explorer
- config.json
- README.md
- build_release_itinerary.cjs
- is_release.sh
- is_release_for_package.sh
- build_prod_template.yml
- build_test_template.yml
- charts_tests.yml
- cleanup_build_template.yml
- js_tests.yml
- lint.yml
- performance_tests.yml
- pull_request.yml
- python_tests.yml
- release.yml
- release_candidates.yml
- validate-renovate-config.yaml
- __init__.py
- bars.py
- base.py
- pie.py
- planar.py
- __init__.py
- filtering.py
- rounding.py
- __init__.py
- main.py
- test_bar.py
- test_blank.py
- test_box_and_whiskers.py
- test_categorical_scale.py
- test_datetime_scale.py
- test_line.py
- test_log_graph.py
- test_pie.py
- test_scatter.py
- test_supergraph.py
- test_unknown.py
- test_detect_scale.py
- test_is_grid_line.py
- LICENSE
- package.json
- poetry.lock
- pyproject.toml
- README.md
- charts.ts
- consts.ts
- index.ts
- messaging.ts
- sandbox.ts
- utils.ts
- bar.test.ts
- boxAndWhisker.test.ts
- line.test.ts
- log.test.ts
- pie.test.ts
- scales.test.ts
- scatter.test.ts
- superchart.test.ts
- unknown.test.ts
- bash.test.ts
- java.test.ts
- js.test.ts
- python.test.ts
- r.test.ts
- bar.test.ts
- run.test.ts
- run.test.ts
- bash.test.ts
- basic.test.ts
- callbacks.test.ts
- contexts.test.ts
- cwd.test.ts
- data.test.ts
- defaultKernels.test.ts
- displayData.test.ts
- executionCount.test.ts
- interrupt.test.ts
- kernels.test.ts
- killedSandbox.test.ts
- reconnect.test.ts
- sandboxUrl.test.ts
- setup.ts
- statefulness.test.ts
- streaming.test.ts
- systemd.test.ts
- .eslintrc.cjs
- .gitignore
- CHANGELOG.md
- example.mts
- LICENSE
- package.json
- README.md
- tsconfig.json
- tsup.config.js
- vitest.config.mts
- __init__.py
- charts.py
- code_interpreter_async.py
- code_interpreter_sync.py
- constants.py
- exceptions.py
- models.py
- test_bash.py
- test_java.py
- test_js.py
- test_python.py
- test_r.py
- test_async_bash.py
- test_async_basic.py
- test_async_callbacks.py
- test_async_contexts.py
- test_async_custom_repr_object.py
- test_async_cwd.py
- test_async_data.py
- test_async_default_kernels.py
- test_async_display_data.py
- test_async_execution_count.py
- test_async_interrupt.py
- test_async_kernels.py
- test_async_killed.py
- test_async_reconnect.py
- test_async_statefulness.py
- test_async_streaming.py
- test_async_systemd.py
- test_bar.py
- test_box_and_whiskers.py
- test_json.py
- test_line.py
- test_log_chart.py
- test_pie.py
- test_scale.py
- test_scatter.py
- test_superchart.py
- test_unknown.py
- test_images.py
- test_bash.py
- test_java.py
- test_js.py
- test_python.py
- test_r.py
- test_bash.py
- test_basic.py
- test_callbacks.py
- test_contexts.py
- test_custom_repr_object.py
- test_cwd.py
- test_data.py
- test_default_kernels.py
- test_display_data.py
- test_execution_count.py
- test_interrupt.py
- test_kernels.py
- test_killed.py
- test_reconnect.py
- test_statefulness.py
- test_streaming.py
- test_systemd.py
- conftest.py
- performance.py
- test_execute_timeout.py
- test_sandbox_url.py
- async_example.py
- CHANGELOG.md
- example.py
- LICENSE
- package.json
- poetry.lock
- pyproject.toml
- pytest.ini
- README.md
- e2b-code-interpreter-dark.png
- e2b-code-interpreter-light.png
- logo-circle.png
- __init__.py
- context.py
- create_context.py
- env_vars.py
- error.py
- execution_request.py
- logs.py
- output.py
- result.py
- locks.py
- consts.py
- contexts.py
- envs.py
- errors.py
- main.py
- messaging.py
- requirements.txt
- stream.py
- 0002_data.py
- 0003_images.py
- code-interpreter.service
- jupyter-debug.conf
- jupyter.service
- build_ci.py
- build_debug.py
- build_docker.py
- build_prod.py
- build_test.py
- debug_logs.py
- ipython_kernel_config.py
- jupyter-healthcheck.sh
- jupyter_server_config.py
- matplotlibrc
- package.json
- README.md
- requirements-dev.txt
- requirements.txt
- start-up.sh
- template.py
- .eslintrc.cjs
- .gitignore
- .npmrc
- .prettierignore
- .prettierrc
- .tool-versions
- CODEOWNERS
- LICENSE
- Makefile
- package.json
- pnpm-lock.yaml
- pnpm-workspace.yaml
- README.md
- renovate.json5
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
npm
View Details ▼
npm
JavaScript and Node.js package manager.
Manage Node.js projects and their module dependencies.
Some subcommands such as `install`, `run`, etc. have their own usage documentation.
npm init {{[-y|--yes]}}
Create a `package.json` file with default values (omit `--yes` to do it interactively):
npm {{[i|install]}}
Download all the packages listed as dependencies in `package.json`:
npm {{[i|install]}} {{package_name}}@{{version}}
Download a specific version of a package and add it to the list of dependencies in `package.json`:
pip install
View Details ▼
pip install
Install Python packages.
pip install {{package1 package2 ...}}
Install one or more packages:
pip install {{package1 package2 ...}} {{[-U|--upgrade]}}
Upgrade all specified packages to the latest version, installing any that are not already present:
pip install {{package}}=={{version}}
Install a specific version of a package:
