You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add pixi support for linux-64, osx-64, and osx-arm64 machines.
- Add root_base only to the linux-64 book environment given poor macOS support.
* Update README and introduction to add pixi instructions.
* Add conda instructions to introduction.
* Remove SLC6 and CentOS 7 LXPLUS instructions and add EL9 LXPLUS
instructions using cvmfs-venv.
* Fix typo in Makefile.
@@ -82,21 +85,39 @@ Not all parts of this user guide are able to run in Pyodide, but the pure Python
82
85
83
86
::::
84
87
85
-
Once you have a virtual environment set up, you can use `source pyhf-tutorial/bin/activate` to get back into it again. Note the prefix `(pyhf-tutorial) $` on your command line, which indicates that you're inside a virtual environment named 'pyhf-tutorial'.
88
+
Once you have a virtual environment set up, you can use `source pyhf-tutorial/bin/activate` to get back into it again (or `pixi shell` for `pixi`). Note the prefix `(pyhf-tutorial) $` on your command line, which indicates that you're inside a virtual environment named 'pyhf-tutorial'.
86
89
87
90
### Getting pyhf
88
91
89
-
If you haven't already, make a new Python 3 virtual environment and then install `pyhf` from either [PyPI](https://pypi.org/project/pyhf/) with `pip`
92
+
If you haven't already, make a new Python 3 virtual environment and then install `pyhf`
93
+
94
+
::::{tab-set}
95
+
96
+
:::{tab-item} pixi
97
+
from [conda-forge](https://anaconda.org/conda-forge/pyhf) with [`pixi`](https://pixi.sh/)
98
+
99
+
```
100
+
$ pixi add pyhf
101
+
```
102
+
:::
103
+
104
+
:::{tab-item} pip
105
+
from [PyPI](https://pypi.org/project/pyhf/) with `pip`
90
106
91
107
```
92
108
(pyhf-tutorial) $ python -m pip install pyhf
93
109
```
110
+
:::
94
111
95
-
or [Conda-forge](https://anaconda.org/conda-forge/pyhf)
112
+
:::{tab-item} conda
113
+
from [conda-forge](https://anaconda.org/conda-forge/pyhf) with [`conda`](https://docs.conda.io/)
@@ -141,7 +162,23 @@ To get all the dependencies needed for this tutorial first clone the repository
141
162
(pyhf-tutorial) $ cd pyhf-tutorial
142
163
```
143
164
144
-
then you can just install from the included `requirements.txt` in the top level `binder/` directory of [the source repository](https://github.com/pyhf/pyhf-tutorial)
165
+
#### Using `pixi`
166
+
167
+
then simply run
168
+
169
+
```
170
+
pixi install
171
+
```
172
+
173
+
or to also start running the example notebooks run
174
+
175
+
```
176
+
pixi run start
177
+
```
178
+
179
+
#### Using `pip`
180
+
181
+
then install from the included `requirements.txt` in the top level `binder/` directory of [the source repository](https://github.com/pyhf/pyhf-tutorial)
0 commit comments