-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpixi.toml
76 lines (65 loc) · 1.83 KB
/
pixi.toml
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
70
71
72
73
74
75
76
[project]
authors = ["Matthew Feickert <[email protected]>"]
channels = ["conda-forge"]
description = "pyhf user guide"
name = "pyhf-tutorial"
platforms = ["linux-64", "osx-64", "osx-arm64"]
version = "0.7.6"
[tasks.start]
description = "Launch Jupyer Lab and explore the user guide notebooks"
cmd = "jupyter lab"
[dependencies]
python = "3.12.*"
pyhf = "0.7.6.*"
uproot = ">=5.5.1,<6"
iminuit = ">=2.30.1,<3"
matplotlib-base = ">=3.10.0,<4"
requests = ">=2.32.3,<3"
# visualization
ipywidgets = ">=8.1.5,<9"
ipympl = ">=0.9.5,<0.10"
pandas = ">=2.2.3,<3"
altair = ">=5.5.0,<6"
rich = ">=13.9.4,<14"
# jupyter notebooks
notebook = ">=7.3.2,<8"
jupyterlab = ">=4.3.4,<5"
[feature.book.tasks.build]
description = "Build the Jupyter Book"
cmd = "jupyter-book build book/"
[feature.book.tasks.clean]
description = "Remove the Jupyter Book build"
cmd = "rm -rf book/_build"
[feature.book.dependencies]
jupyter-book = "0.15.1.*"
# macOS support for ROOT is currently not good
[feature.book.target.linux-64.dependencies]
root_base = ">=6.32.2,<7"
[feature.jupyterlite.tasks.build-lite]
description = "Build JupyterLite version of book"
cmd = """
jupytext --to notebook lite/jupyterlite.py && \
mv lite/*.ipynb book/ && \
jupyter lite init && \
jupyter lite build --contents=book && \
jupyter lite check
"""
inputs = ["lite/jupyterlite.py"]
outputs = ["_output"]
[feature.jupyterlite.tasks.serve]
description = "Serve the built JupyterLite page"
cmd = "jupyter lite serve"
depends-on = ["build-lite"]
[feature.jupyterlite.tasks.clean-lite]
description = "Remove the JupyterLite outputs"
cmd = """
rm -rf .jupyterlite.doit.db _output && \
rm -rf book/jupyterlite.ipynb
"""
[feature.jupyterlite.dependencies]
jupyterlite = ">=0.5.0,<0.6"
jupyterlite-pyodide-kernel = ">=0.5.0,<0.6"
jupytext = ">=1.16.6,<2"
[environments]
book = ["book"]
jupyterlite = ["jupyterlite"]