Pantograph/examples/README.md

24 lines
548 B
Markdown
Raw Normal View History

2024-07-01 12:18:00 -07:00
# Examples
For a quick introduction of the API, fire up Jupyter and open `all.ipynb`.
``` sh
poetry run jupyter notebook
```
2024-05-17 20:45:29 -07:00
This example showcases how to bind library dependencies and execute the `Aesop`
tactic in Lean. First build the example project:
``` sh
pushd Example
lake build
popd
```
2024-05-31 17:09:12 -07:00
This would generate compiled `.olean` files. Then run one of the examples from the
2024-05-17 20:56:01 -07:00
project root:
2024-05-17 20:45:29 -07:00
``` sh
2024-05-17 20:56:01 -07:00
poetry run examples/aesop.py
2024-05-31 17:09:12 -07:00
poetry run examples/data.py
2024-05-17 20:45:29 -07:00
```
2024-05-31 17:09:12 -07:00
Warning: If you make modifications to any Lean files, you must re-run `lake build`!