Skip to content

only execute notebooks that appear in the TOC #61

Open
@brian-rose

Description

@brian-rose

Currently if we are executing notebooks via binderbot, the TOC file is ignored during execution phase and we just run every *.ipynb file.

On the other hand if execution occurs via jupyter-book, then TOC is parsed within jupyter-book and only those notebooks that appear in the TOC are executed.

Ideally the list of executed notebooks would be identical regardless of where the execution takes place. Only notebooks in the TOC should be executed.

One possibility is to add some code to the binderbot-specific sections of the build-book workflow to parse the TOC and generate a list of notebooks to pass to the binderbot call.

Alternatively, it may be possible to leverage jupyter-book for this. Is is possible to get the jupyter-book CLI to just report back the list of notebooks it "would have executed" without actually executing them?

Metadata

Metadata

Assignees

No one assigned

    Labels

    hackathonIssue highlighted for active hackathon sessioninfrastructureInfrastructure related issue

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions