Installation#

mltpy is a pure-Python package with only numpy and scipy as required dependencies. It targets Python ≥ 3.12.

Basic install#

pip install mltpy

Optional extras#

pip install "mltpy[plots]"      # matplotlib for .plot() helpers
pip install "mltpy[pandas]"     # accept pd.Series as y
pip install "mltpy[examples]"   # run the vignettes (lifelines, jupyter, …)
pip install "mltpy[dev]"        # tests, linters, type checker
pip install "mltpy[docs]"       # build the documentation locally

Development install#

git clone https://github.com/RMKruse/mltpy
cd mltpy
pip install -e ".[dev,examples]"

Building the docs locally also requires pandoc, which nbsphinx uses to execute and render the Jupyter vignettes:

pip install -e ".[docs]"
sphinx-build -b html -W --keep-going docs/ docs/_build/html