Skip to main content

python-exec

Execute arbitrary Python code and return stdout. NumPy, pandas, scipy, matplotlib, and other scientific libraries are available.

Source facts

Repository
lamm-mit/scienceclaw
Last source activity
April 7, 2026 at 03:06
Detected SKILL.md language
English
Stars
244
Forks
46

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

File Explorer
2 files

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
python-exec
description
Execute arbitrary Python code and return stdout. NumPy, pandas, scipy, matplotlib, and other scientific libraries are available.
# python-exec Execute a Python code snippet in a subprocess and return its stdout output. ## Usage ```bash 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.
View on GitHub