run_python_code
Execute Python code in a secure containerized environment to capture output and errors. Supports libraries like numpy, pandas, matplotlib, scikit-learn, requests, and google-genai for efficient scripting and data processing.
Instructions
Execute Python code in the sandbox environment and captures the standard output and error.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
code | Yes | The Python code to execute, included libraries are numpy, pandas, matplotlib, scikit-learn, requests, google-genai |
Input Schema (JSON Schema)
{
"properties": {
"code": {
"description": "The Python code to execute, included libraries are numpy, pandas, matplotlib, scikit-learn, requests, google-genai",
"title": "Code",
"type": "string"
}
},
"required": [
"code"
],
"title": "run_python_codeArguments",
"type": "object"
}