Skip to content

Commit d529f63

Browse files
m-messerclaude
andcommitted
Add scientific Python library support (numpy, pandas, matplotlib, etc.)
Add numpy, pandas, matplotlib, scipy, seaborn, and statsmodels as runtime dependencies for numerical methods, statistics, and data visualisation exercises. Set MPLBACKEND=Agg in the subprocess environment so matplotlib works headlessly in the Docker container. Also tightens the Python constraint to >=3.11 to match lf-toolkit. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 2ae0ba0 commit d529f63

3 files changed

Lines changed: 2655 additions & 69 deletions

File tree

evaluation_function/evaluation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ def _run_code(code: str, stdin: str) -> tuple[str, str, bool]:
1818
capture_output=True,
1919
text=True,
2020
timeout=_TIMEOUT,
21+
env={**os.environ, "MPLBACKEND": "Agg"},
2122
)
2223
return proc.stdout, proc.stderr, False
2324
except subprocess.TimeoutExpired:

0 commit comments

Comments
 (0)