Skip to content

Commit 2d5c798

Browse files
committed
Add swig to the workflow
1 parent a5ee8d9 commit 2d5c798

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

.github/workflows/book.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: macos-latest
1111
steps:
1212
- name: Install brew dependencies
13-
run: brew install fftw openblas
13+
run: brew install fftw openblas swig
1414

1515
- uses: actions/checkout@v2
1616

Makefile

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ all: 01.f2py.ipynb 02.f2py.ipynb 03.julia-set.ipynb 04.vlasov-poisson.ipynb 05.c
33
.SUFFIXES: .py .ipynb
44

55
.py.ipynb:
6-
jupytext --set-formats py,notebooks//ipynb $<
76
jupytext --sync $<
87

98
01.f2py.ipynb: 01.f2py.py

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,15 @@ jupyter notebook
1818
- [Finite differences on staggered grid to solve Maxwell equations in 2D](https://pnavaro.github.io/python-fortran/07.maxwell-fdtd-2d.html)
1919
- [Short example with SWIG and CTYPES](https://pnavaro.github.io/python-fortran/08.swig.html)
2020

21+
Reminder: Build the Jupyter book
22+
23+
```bash
24+
make
25+
jupyter-book build notebooks
26+
```
27+
and eventually push the book to gh-pages
28+
```bash
29+
ghp-import -n -p -f notebooks/_build/html
30+
```
31+
2132
Pierre Navaro IRMAR CNRS

environment.yml

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ dependencies:
66
- pip
77
- pip:
88
- -r requirements.txt
9+
- jupytext

0 commit comments

Comments
 (0)