Expand description
Which Python runs model code, and the managed environment for data-analysis packages.
Order: $BYOB_PYTHON, then the managed venv <data>/python/venv (created by
install_python_packages with uv), then python3 /
python on PATH.
Structs§
- Python
- A resolved interpreter.
Constants§
- PYTHON_
ENV - Overrides the interpreter.
Functions§
- managed_
root - The managed environment’s folder under the byob data folder.
- managed_
venv - system_
python python3(orpython) onPATH, ignoring$BYOB_PYTHONand the managed venv.- valid_
requirement - A package requirement the model may ask for: a name with optional extras and version
constraints (
pandas,scikit-learn>=1.4,xarray[io]). No URLs, paths or options. - venv_
python - which
- The first executable
nameonPATH(ornameitself if it’s a path).