# Installation

This installs the **campmc** third-party package from [PyPI](https://pypi.org/project/campmc/).
Documentation: [campmc.readthedocs.io](https://campmc.readthedocs.io/en/latest/).

For the original CAMP research repository, see [danrongLi/CAMP](https://github.com/danrongLi/CAMP).

## From PyPI

With [pip](https://pip.pypa.io/):

```console
$ pip install campmc
```

Or with [uv](https://docs.astral.sh/uv/):

```console
$ uv add campmc
```

Requires Python ≥ 3.12.

## Import

```python
import campmc as cp
import scanpy as sc
```

Next: {doc}`user_guide` or {doc}`tutorials/index`.

## From a clone (development)

```console
$ git clone https://github.com/nictru/campmc.git
$ cd campmc
$ uv sync
```

Development tools (tests, linting, type checking):

```console
$ uv sync --group dev
```

Documentation build dependencies:

```console
$ uv sync --group doc
$ uv run sphinx-build -M html docs docs/_build
```

Open ``docs/_build/html/index.html`` in a browser.
