Skip to content
Snippets Groups Projects
Select Git revision
  • master
  • rename_category_group
  • php8.1_deprecations
  • v1.12.1
  • v1.13
  • v1.12
  • v1.11
  • v1.10
  • v1.9
  • v1.8
  • v1.7
  • v1.6
  • v1.5
  • v1.4
  • v1.3
  • v1.2
  • v1.1
  • v1.0
18 results

2.obj

Blame
  • Makefile NaN GiB
    SLIDES = Introduction-to-Pandas--slides.html
    SUBNOTEBOOKS = Introduction-to-Pandas--slides.ipynb Introduction-to-Pandas--tasks.ipynb Introduction-to-Pandas--solution.ipynb
    
    MASTER_NOTEBOOK = Introduction-to-Pandas--master.ipynb
    
    DEP_PRESENTATION = reveal_options.txt fzj.js custom.css Makefile
    
    .PHONY: all presentation subnotebooks presentation-pdf
    all: presentation subnotebooks
    presentation: $(SLIDES)
    presentation-pdf: $(SLIDES:html=pdf)
    subnotebooks: $(SUBNOTEBOOKS)
    
    %.html: %.ipynb $(DEP_PRESENTATION)
    	jupyter nbconvert --to=slides --reveal-prefix=reveal.js --stdout $< \
    	| awk '/reveal.js"/ { print "     " $$1 ","; print "     \"fzj.js\""; next }1' \
    	| sed '/transition/r reveal_options.txt' \
    	> $@
    
    %.pdf: %.html $(DEP_PRESENTATION)
    	# This needs to have artificially large paper size in order to fix bug https://github.com/astefanutti/decktape/issues/151#issuecomment-456166075
    	decktape --size "2560x1440" reveal $< $@
    
    Introduction-to-Pandas--slides.ipynb: $(MASTER_NOTEBOOK)
    	./notebook-task-filter.py $< --keep task --keep solution --keep onlypresentation --remove onlytask --remove onlysolution --remove nopresentation -o $@
    
    Introduction-to-Pandas--tasks.ipynb: $(MASTER_NOTEBOOK)
    	./notebook-task-filter.py $< --keep task --keep nopresentation --keep onlytask --remove solution --remove all -o $@
    
    Introduction-to-Pandas--solution.ipynb: $(MASTER_NOTEBOOK)
    	./notebook-task-filter.py $< --keep task --keep nopresentation --keep solution --keep onlysolution --remove all -o $@