From a15741f03a98bc31c70ae6efd241b4b2fdedebc5 Mon Sep 17 00:00:00 2001 From: Borjan Tchakaloff Date: Sat, 6 Aug 2022 13:31:34 +0200 Subject: [PATCH] Add Jupyter notebook supporting talk at EuroPython 2022 Late commit of the materials I used during my talk. The slides are generated from the Jupyter notebook. The only difference is that I pinned the reveal.js version to 4.3.1 so that it can be loaded from a CDN while I used a local checkout during my talk that was pointing to the (yet unreleased, latest at the time) commit 039972c730690af7a83a5cb832056a7cc8b565d7 [1]. [1]: https://github.com/hakimel/reveal.js/commit/039972c730690af7a83a5cb832056a7cc8b565d7 --- 2022-EuroPython/.gitignore | 1 + 2022-EuroPython/Makefile | 22 + 2022-EuroPython/README.md | 25 + 2022-EuroPython/race-conditions.ipynb | 2630 +++ 2022-EuroPython/race-conditions.slides.html | 17459 ++++++++++++++++++ 2022-EuroPython/requirements.txt | 89 + 6 files changed, 20226 insertions(+) create mode 100644 2022-EuroPython/.gitignore create mode 100644 2022-EuroPython/Makefile create mode 100644 2022-EuroPython/README.md create mode 100644 2022-EuroPython/race-conditions.ipynb create mode 100644 2022-EuroPython/race-conditions.slides.html create mode 100644 2022-EuroPython/requirements.txt diff --git a/2022-EuroPython/.gitignore b/2022-EuroPython/.gitignore new file mode 100644 index 0000000..1d17dae --- /dev/null +++ b/2022-EuroPython/.gitignore @@ -0,0 +1 @@ +.venv diff --git a/2022-EuroPython/Makefile b/2022-EuroPython/Makefile new file mode 100644 index 0000000..b0c9457 --- /dev/null +++ b/2022-EuroPython/Makefile @@ -0,0 +1,22 @@ +all: slides + +.PHONY: +venv: + python3 -mvenv .venv + ./.venv/bin/python3 -mpip install -r requirements.txt + +.PHONY: +jupyter: + ./.venv/bin/python3 -mjupyterlab + +slides: + ./.venv/bin/python3 -mjupyter nbconvert \ + race-conditions.ipynb \ + --to slides + # Update reveal.js version + sed -i 's#https://unpkg.com/reveal.js@4.0.2#https://unpkg.com/reveal.js@4.3.1#g' \ + "race-conditions.slides.html" + # Fix line height too small for 'j', 'p', etc. letters + sed -i \ + 's## + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+ + + + + + + + + + +