-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinstallation.qmd
More file actions
69 lines (48 loc) · 1.41 KB
/
Copy pathinstallation.qmd
File metadata and controls
69 lines (48 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Installation
PlotNado uses standard Python packaging, but the recommended workflow is `uv`.
## Requirements
- Python 3.12+
- `uv`
- Quarto, only if you are building the public documentation site
## Install `uv`
```bash
curl -LsSf https://astral.sh/uv/install.sh | sh
```
On macOS:
```bash
brew install uv
```
## Use PlotNado as a CLI
For a user-level command:
```bash
uv tool install plotnado
plotnado --help
```
From a checked-out repository, prefer:
```bash
uv run plotnado --help
```
## Develop from source
```bash
git clone https://github.com/alsmith151/plotnado
cd plotnado
uv sync --extra dev --extra docs
uv run pytest tests/
uv run python examples/run_examples.py
uv run plotnado --help
```
`uv sync --extra dev --extra docs` installs the package, test tools, and documentation dependencies into the project environment.
## Build docs locally
```bash
uv sync --extra dev --extra docs
QUARTO_PYTHON=.venv/bin/python quarto render
QUARTO_PYTHON=.venv/bin/python quarto preview
```
The docs use executable Quarto Python cells. Most examples use deterministic in-memory data; optional cooler, CapCruncher, and QuantNado examples need their corresponding dependencies and fixture data.
## Pip and Conda
`pip` and Conda environments can still install PlotNado, but project development and docs examples assume the `uv` commands above.
```bash
python -m venv .venv
source .venv/bin/activate
pip install plotnado
```