CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
AllenDowney

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: AllenDowney/ModSimPy
Path: blob/master/examples/build.sh
Views: 531
1
# copy the notebooks and remove the solutions
2
cp ../ModSimPySolutions/examples/*.ipynb .
3
python remove_soln.py
4
5
# run nbmake
6
rm modsim.py chap*.py
7
pytest --nbmake \
8
bungee1.ipynb \
9
bungee2.ipynb \
10
glucose.ipynb \
11
header.ipynb \
12
insulin.ipynb \
13
plague.ipynb \
14
queue.ipynb \
15
# salmon.ipynb \ does not run without solutions
16
spiderman.ipynb \
17
throwingaxe.ipynb \
18
trees.ipynb \
19
wall.ipynb \
20
21
22
# add and commit
23
git add *.ipynb
24
git commit -m "Updating examples"
25
git push
26
27