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/chapters/build.sh
Views: 531
1
# copy the notebooks and remove the solutions
2
cp ../ModSimPySolutions/chapters/chap*.ipynb .
3
python remove_soln.py
4
5
# run nbmake
6
rm modsim.py chap*.py
7
pytest --nbmake chap*.ipynb
8
9
# add and commit
10
git add chap*.ipynb chap*.py
11
git commit -m "Updating chapters"
12
13
# build the zip file
14
cd ../..; zip -r ModSimPyNotebooks.zip \
15
ModSimPy/chapters/chap*.ipynb \
16
ModSimPy/examples/*.ipynb
17
18
# add and commit it
19
mv ModSimPyNotebooks.zip ModSimPy
20
cd ModSimPy
21
22
git add ModSimPyNotebooks.zip
23
git commit -m "Updating the notebook zip file"
24
25
git push
26
27