-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile-jupyter
24 lines (16 loc) · 1023 Bytes
/
Makefile-jupyter
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
default: publish
publish: snapshot.png
snapshot.png: index.html
phantomjs ../rasterize.js index.html snapshot.png 400px*300px
index.html: slides.ipynb
ipython nbconvert --to html slides.ipynb
mv slides.html index.html
#full.tpl: ~/.pyenv/versions/3.6.3/lib/python3.6/site-packages/nbconvert/templates/html/full.tpl
# cp ~/.pyenv/versions/3.6.3/lib/python3.6/site-packages/nbconvert/templates/html/full.tpl .
#full:
# jupyter nbconvert slides.ipynb --to slides --template full.tpl --post serve --ServePostProcessor.port=8010 --SlidesExporter.reveal_scroll=True --SlidesExporter.reveal_theme=simple
#reveal:
# jupyter nbconvert slides.ipynb --to slides --post serve --ServePostProcessor.port=8010 --SlidesExporter.reveal_scroll=True --SlidesExporter.reveal_theme=simple
#index.html: slides.ipynb
# jupyter nbconvert slides.ipynb --to slides --SlidesExporter.reveal_theme=simple --SlidesExporter.reveal_url_prefix=https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.5.0/
# mv slides.slides.html index.html