Skip to content

It should be possible to error and exit the documentation build process if the execution of the notebooks raises an Exception #392

@rdbisme

Description

@rdbisme

Describe the problem/need and solution

Context
We have lots of code cells that execute code that normally should run correctly but when API changes and we forgot to update the docs, the docs build process should failt to force us to fix it.

Problem / Idea
Right now in the execution.py errors are just logged, but build continues. Therefore the sphinx build process exit correctly even if the execution of code cells failed.

Solution
If execution_allow_errors = False, exceptions should stop the build

Benefit
This will avoid to push unreliable code in docs

Guide for implementation

  • I have a PR following.

Tasks and updates

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions