|
1 | | -# Code interpreter extension for Python |
| 1 | +<p align="center"> |
| 2 | + <img width="100" src="/readme-assets/logo-circle.png" alt="e2b logo"> |
| 3 | +</p> |
| 4 | + |
| 5 | + |
| 6 | +<h1 align="center"> |
| 7 | + Code interpreter extension for Python |
| 8 | +</h1> |
| 9 | + |
| 10 | +<h4 align="center"> |
| 11 | + <a href="https://pypi.org/project/e2b/"> |
| 12 | + <img alt="Last 1 month downloads for the Python SDK" loading="lazy" width="200" height="20" decoding="async" data-nimg="1" |
| 13 | + style="color:transparent;width:auto;height:100%" src="https://img.shields.io/pypi/dm/e2b?label=PyPI%20Downloads"> |
| 14 | + </a> |
| 15 | + <a href="https://www.npmjs.com/package/e2b"> |
| 16 | + <img alt="Last 1 month downloads for the Python SDK" loading="lazy" width="200" height="20" decoding="async" data-nimg="1" |
| 17 | + style="color:transparent;width:auto;height:100%" src="https://img.shields.io/npm/dm/e2b?label=NPM%20Downloads"> |
| 18 | + </a> |
| 19 | +</h4> |
2 | 20 |
|
3 | 21 | The repository contains a template and modules for the code interpreter sandbox. It is based on the Jupyter server and implements the Jupyter Kernel messaging protocol. This allows for sharing context between code executions and improves support for plotting charts and other display-able data. |
4 | 22 |
|
@@ -87,3 +105,23 @@ print("world") |
87 | 105 | with Sandbox() as sandbox: |
88 | 106 | sandbox.run_code(code, on_stdout=print, on_stderr=print, on_result=(lambda result: print(result.text))) |
89 | 107 | ``` |
| 108 | + |
| 109 | +### More resources |
| 110 | +- Check out the [JavaScript/TypeScript](https://e2b.dev/docs/hello-world/js) and [Python](https://e2b.dev/docs/hello-world/py) "Hello World" guides to learn how to use our SDK. |
| 111 | + |
| 112 | +- See [E2B documentation](https://e2b.dev/docs) to get started. |
| 113 | + |
| 114 | +- Visit our [Cookbook](https://github.com/e2b-dev/e2b-cookbook/tree/main) to get inspired by examples with different LLMs and AI frameworks. |
| 115 | + |
| 116 | +___ |
| 117 | + |
| 118 | +<div align='center'> |
| 119 | +<!-- <a href="https://e2b.dev/docs" target="_blank"> |
| 120 | +<img src="https://img.shields.io/badge/docs-%2300acee.svg?color=143D52&style=for-the-badge&logo=x&logoColor=white" alt=docs style="margin-bottom: 5px;"/></a> --> |
| 121 | +<a href="https://twitter.com/e2b_dev" target="_blank"> |
| 122 | +<img src="https://img.shields.io/badge/x (twitter)-%2300acee.svg?color=000000&style=for-the-badge&logo=x&logoColor=white" alt=linkedin style="margin-bottom: 5px;"/></a> |
| 123 | +<a href="https://discord.com/invite/U7KEcGErtQ" target="_blank"> |
| 124 | +<img src="https://img.shields.io/badge/discord -%2300acee.svg?color=143D52&style=for-the-badge&logo=discord&logoColor=white" alt=discord style="margin-bottom: 5px;"/></a> |
| 125 | +<a href="https://www.linkedin.com/company/e2b-dev/" target="_blank"> |
| 126 | +<img src="https://img.shields.io/badge/linkedin-%2300acee.svg?color=000000&style=for-the-badge&logo=linkedin&logoColor=white" alt=linkedin style="margin-bottom: 5px;"/></a> |
| 127 | +</div align='center'> |
0 commit comments