Python exec

From lamm-mit/scienceclaw · View interactive version

Python exec is an AI agent skill from the GitHub repository lamm-mit/scienceclaw. Execute arbitrary Python code and return stdout. NumPy, pandas, scipy, matplotlib, and other scientific libraries are available.

How to use this skill

Skill file

python-exec

Execute a Python code snippet in a subprocess and return its stdout output.

Usage

python3 scripts/python_exec.py --code "import numpy as np; print(np.mean([1,2,3]))"

Output

Returns stdout from the executed code (up to 8000 chars). If execution fails, returns stderr prefixed with [stderr]:.

Available libraries

NumPy, pandas, scipy, matplotlib, scikit-learn, biopython, rdkit, and any other package installed in the environment.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.