-
Notifications
You must be signed in to change notification settings - Fork 211
/
build.sh
executable file
路20 lines (14 loc) 路 701 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
set -e
# 1) Run all notebooks and check for errors
# jupyter nbconvert --inplace --to notebook --execute *-slides.ipynb
# 2) Convert answers to exercises.
# jupyter nbconvert --config config.py --to notebook \
# --output 04-merge-pivot-exercises.ipynb 04-merge-pivot-answers.ipynb
# ls *slides.ipynb | parallel jupyter nbconvert --to slides --output-dir build
jupyter nbconvert --to slides --reveal-prefix=reveal.js --output-dir build *slides.ipynb
cp -a assets build/assets
# add converting to pdf
# set query string to be ?print-pdf&pdfSeparateFragments=false&pdfMaxPagesPerSlide=1"
# add combining for classes
# pdfconcat --output programming-with-data-foundations.pdf 0[1-3]*pdf