Skip to content
Snippets Groups Projects
Select Git revision
  • cmake_subprojects
  • develop default
  • Blockage
  • GuidoBasten
  • Anticipation_Model
  • tgf19ts
  • 313-waiting-behaviour
  • tgf19mc
  • wa_testing
  • trajectories
  • 287-waitingarea
  • 320-one-sided-closed-doors
  • kapakrit-anna
  • 311-improve-ff
  • 306-schedule-for-was
  • 294-events
  • 307-temp-close
  • 302-external-files
  • split_files
  • 298-sources
  • 293-statistics-crossings
  • v0.8.4
  • v0.8.3
  • v0.8.2
  • v0.8.1
  • v0.8
  • v0.7
  • v0.6
  • v0.5-alpha
  • v0.5-alpha1
  • v0.4
31 results

Dockerfile

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 $@