Skip to content

sean-parent/notebook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b75acfc · Feb 21, 2025
May 20, 2021
May 28, 2023
May 28, 2023
Feb 13, 2023
Feb 13, 2023
May 31, 2024
Feb 21, 2025
May 20, 2021
Apr 25, 2023
Jun 26, 2021
Feb 7, 2025
Feb 16, 2023
Apr 25, 2023
May 28, 2023
Aug 20, 2020
Aug 20, 2020
Feb 7, 2025
Dec 22, 2020
Feb 3, 2023
Feb 16, 2023
Jan 31, 2021
Feb 13, 2021
Feb 16, 2023
Feb 13, 2023

Repository files navigation

notebook

You can browse and play with the notebooks online via Binder.

The slides are available at https://sean-parent.stlab.cc/notebook/

Running locally

[ Note: I've moved to Docker for consistent, cross-platform use. Platform-specific instructions are no longer included. ]

Setup

[ Note: Currently browser-sync is not working with VirtioFS in Docker. I recommend using gRBC FUSE for now. ]

Running Tools

VOLUME="docker.pkg.github.com/sean-parent/notebook/notebook-tools:latest"
PLATFORM="linux/amd64"

docker run --platform=$PLATFORM --mount type=bind,source="$(pwd)",target=/mnt/host  --tty --interactive \
    --publish 4000:3000 --publish 4001:3001 --publish 8888:8888 $VOLUME bash

From the Docker prompt

cd /mnt/host
./tools/prepare.sh
./tools/start.sh --lab --server --no-token

[ Note: If a browser window is open to JupyterLab when you start the server, it will report errors about the kernel not being available. Close the browser window and open a new one. ]

Tips

If you want to open another terminal on the running image use:

docker ps
docker exec -it <container id> bash

Updating the tools image

See ./tools/docker-tools/README.md

jupytext --to notebook --output - ./better-code-new/05-auto.md | jupyter nbconvert --stdin --to=slides --reveal-prefix=../reveal.js --output-dir=./docs/better-code-class --config=./slides-config/slides_config.py