Spaces:
Sleeping
Sleeping
MilesCranmer
commited on
Commit
•
ee2d4ea
1
Parent(s):
1fdfce8
Update instructions for docker
Browse files
README.md
CHANGED
@@ -15,7 +15,7 @@ PySR uses evolutionary algorithms to search for symbolic expressions which optim
|
|
15 |
|
16 |
| **Docs** | **colab** | **pip** | **conda** | **Stats** |
|
17 |
|---|---|---|---|---|
|
18 |
-
|[![Documentation](https://github.com/MilesCranmer/PySR/actions/workflows/docs.yml/badge.svg)](https://astroautomata.com/PySR/)|[![Colab](https://img.shields.io/badge/colab-notebook-yellow)](https://colab.research.google.com/github/MilesCranmer/PySR/blob/master/examples/pysr_demo.ipynb)|[![PyPI version](https://badge.fury.io/py/pysr.svg)](https://badge.fury.io/py/pysr)|[![Conda Version](https://img.shields.io/conda/vn/conda-forge/pysr.svg)](https://anaconda.org/conda-forge/pysr)
|
19 |
|
20 |
</div>
|
21 |
|
@@ -263,11 +263,13 @@ the root directory of this repo:
|
|
263 |
```bash
|
264 |
docker build --pull --rm -f "Dockerfile" -t pysr "."
|
265 |
```
|
266 |
-
This builds an image called `pysr`.
|
267 |
-
you can emulate an architecture that works by including: `--platform linux/amd64`.
|
268 |
You can then run this with:
|
269 |
```bash
|
270 |
docker run -it --rm -v "$PWD:/data" pysr ipython
|
271 |
```
|
272 |
which will link the current directory to the container's `/data` directory
|
273 |
and then launch ipython.
|
|
|
|
|
|
|
|
15 |
|
16 |
| **Docs** | **colab** | **pip** | **conda** | **Stats** |
|
17 |
|---|---|---|---|---|
|
18 |
+
|[![Documentation](https://github.com/MilesCranmer/PySR/actions/workflows/docs.yml/badge.svg)](https://astroautomata.com/PySR/)|[![Colab](https://img.shields.io/badge/colab-notebook-yellow)](https://colab.research.google.com/github/MilesCranmer/PySR/blob/master/examples/pysr_demo.ipynb)|[![PyPI version](https://badge.fury.io/py/pysr.svg)](https://badge.fury.io/py/pysr)|[![Conda Version](https://img.shields.io/conda/vn/conda-forge/pysr.svg)](https://anaconda.org/conda-forge/pysr)|<div align="center">pip: [![Downloads](https://pepy.tech/badge/pysr)](https://badge.fury.io/py/pysr)<br>conda: [![Anaconda-Server Badge](https://anaconda.org/conda-forge/pysr/badges/downloads.svg)](https://anaconda.org/conda-forge/pysr)</div>|
|
19 |
|
20 |
</div>
|
21 |
|
|
|
263 |
```bash
|
264 |
docker build --pull --rm -f "Dockerfile" -t pysr "."
|
265 |
```
|
266 |
+
This builds an image called `pysr`.
|
|
|
267 |
You can then run this with:
|
268 |
```bash
|
269 |
docker run -it --rm -v "$PWD:/data" pysr ipython
|
270 |
```
|
271 |
which will link the current directory to the container's `/data` directory
|
272 |
and then launch ipython.
|
273 |
+
If you have issues building (for example, on Apple Silicon),
|
274 |
+
you can emulate another architecture by including `--platform linux/amd64`,
|
275 |
+
before the `build` and `run` commands.
|