Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Fix runtime name (#189)

Jakub Novák56d32d2e441c
diff --git a/.changeset/curvy-drinks-swim.md b/.changeset/curvy-drinks-swim.md
new file mode 100644
index 000000000..b0e2a8161
--- /dev/null
+++ b/.changeset/curvy-drinks-swim.md
@@ -0,0 +1,5 @@
+---
+'@e2b/python-sdk': patch
+---
+
+Fix enum member name
diff --git a/packages/python-sdk/e2b/session/run_code.py b/packages/python-sdk/e2b/session/run_code.py
index e6c5634a2..740c46989 100644
--- a/packages/python-sdk/e2b/session/run_code.py
+++ b/packages/python-sdk/e2b/session/run_code.py
@@ -9,7 +9,7 @@ CodeRuntime = Literal[
"Node16",
"Python3",
"Bash",
- "Python3-DataAnalysis",
+ "Python3_DataAnalysis",
# TODO: Support all runtimes that our infra supports
# DotNET = 'DotNET',
# Go = 'Go',
@@ -79,9 +79,9 @@ async def run_code(
def run_code_sync(
- runtime: Union[CodeRuntime, str],
- code: str,
- api_key: Optional[str] = None,
+ runtime: Union[CodeRuntime, str],
+ code: str,
+ api_key: Optional[str] = None,
):
"""
Runs code in a sandboxed cloud playground and return the stdout and stderr