Skip to content

Fix JupyterBook 2.0 documentation build on GitHub Pages #92

Closed

Description

@MaxGhenis

Problem

The documentation build is failing on GitHub Pages with JupyterBook 2.0 due to R/rpy2 import errors in the notebooks.

Error

Error importing in API mode: ImportError

This occurs because:

  1. GitHub Actions doesn't have R installed by default
  2. The notebooks try to import rpy2 directly without proper error handling
  3. JupyterBook 2.0 has stricter notebook execution requirements

Solution

Options to fix:

  1. Update all notebooks to gracefully handle missing R/rpy2
  2. Install R in the GitHub Actions workflow
  3. Use the Python-only implementation (see Replace R/rpy2 dependency with py-statmatch once ready #93)

Affected notebooks

  • docs/models/matching/matching-imputation.ipynb
  • docs/models/qrf/qrf-imputation.ipynb
  • docs/autoimpute/autoimpute.ipynb
  • docs/models/quantreg/quantreg-imputation.ipynb
  • docs/models/ols/ols-imputation.ipynb
  • docs/imputation-benchmarking/benchmarking-methods.ipynb

Activity

  1. MaxGhenis commented on Aug 2, 2025

    @MaxGhenis
    ContributorAuthor
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions