File: installation.md

package info (click to toggle)
python-autoray 0.7.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,708 kB
  • sloc: python: 5,490; makefile: 20
file content (60 lines) | stat: -rw-r--r-- 1,895 bytes parent folder | download | duplicates (2)
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
# Installation

`autoray` is available on both [pypi](https://pypi.org/project/autoray/) and
[conda-forge](https://anaconda.org/conda-forge/autoray). While `autoray` is
pure python and has no direct dependencies itself, the recommended distribution
would be [mambaforge](https://github.com/conda-forge/miniforge#mambaforge)
for installing the various backend array libraries and their dependencies.

**Installing with `pip`:**
```bash
pip install autoray
```

**Installing with `conda`:**
```bash
conda install -c conda-forge autoray
```

**Installing with `mambaforge`:**
```bash
mamba install autoray
```
```{hint}
Mamba is a faster version of `conda`, and the -forge distritbution comes
pre-configured with only the `conda-forge` channel, which further simplifies
and speeds up installing dependencies.
```

**Installing the latest version directly from github:**

If you want to checkout the latest version of features and fixes, you can
install directly from the github repository:
```bash
pip install -U git+https://github.com/jcmgray/autoray.git
```

**Installing a local, editable development version:**

If you want to make changes to the source code and test them out, you can
install a local editable version of the package:
```bash
git clone https://github.com/jcmgray/autoray.git
pip install --no-deps -U -e autoray/
```

```{note}
**No-install version:**
The entirety of the automatic dispatch mechanism is contained in the single
file `autoray.py`, which you could simply copy into your project if you don't
want add a dependency.
```

## Optional plotting requirements

The [`autoray.lazy.draw`](autoray.lazy.draw) visualizations variously require:

* [`matplotlib`](https://matplotlib.org/)
* [`networkx`](https://networkx.org/) - for computational graph drawing
* [`pygraphviz`](https://pygraphviz.github.io/) - optional, for better and
  faster graph layouts than `networkx`.