Skip to content

add automated testing for jupyter notebooks #89

Closed

Description

@jakelorocco

Our jupyter notebooks and google colabs should function as our easy onboarding strategy for anyone without local hardware. We should make sure these are running / tested during PRs.

For jupyter notebooks, there's actually a pytest library nbmake that will run the notebooks and report errors. It doesn't currently support background processes so our ollama server in the background fails. It looks like there's ways around this restriction though.

For collabs, there's a non-google / out of date tool called colabctl; we could potentially use this (or something similar) to run the notebooks in colab on PR / release.

Otherwise, we should just create a release checklist that has these steps as part of it. If we only test during release creation though, we need to be sure to point people towards the most recent release tag of the notebooks.

Activity

  1. added
    area/backends
    on May 20, 2026
  2. added
    p2
    on Jun 18, 2026
  3. planetf1 commented on Oct 6, 2026

    @planetf1
    Contributor

    Status (2026-10-06): the main ask is implemented via PR #1649. Suggestion: close as done.

    The notebooks under docs/examples/notebooks/ now run on every pull request via pytest --nbmake in .github/workflows/notebooks.yml (merged 2026-09-17 as 51df46ac8). The workflow cites this issue as its motivation, and it handles the Ollama background process problem raised here: the job installs and starts its own Ollama before running the cells. Heavyweight notebooks that declare slow run nightly instead of in PR CI.

    The Colab half was attempted in PR #1652 and closed without merging, so the Colab notebooks remain untested. If we decide we want that, Google's published Colab runtime image (us-docker.pkg.dev/colab-images/public/cpu-runtime) is the sensible starting point: a nightly job that executes the notebooks inside it gets close to the real environment without any paid account.

    Would it be ok to close this one as done?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/backendsp2testing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions