Skip to content

One or more notebooks embedded in pageΒ #77

@matthew-brett

Description

@matthew-brett

This is just to tell you about a use-case that we have, that might be of interest.

Summary

We want to separate the idea of a 'page' and a 'notebook', so that a page can contain one or more notebooks.

Detail

We (@stefanv and I) are writing a new edition of a book on probability and statistics.

For the book format, it makes most sense to us to have chapters, and pages, that are relatively long. These chapters will have several examples. Often we want to have separate notebooks for the students to interact with for each example.

This in turn means we would like to change from the standard "Download / run this page as a notebook" idiom, that works really well in JupyterBook - to an idiom where, at any point in a page, there is a 'Download / run this part of the page as a notebook'.

At the moment we are doing that with an awful hack, where we use macros like r begin_notebook('first_example') and r end_notebook() to drop comments into the built .Rmd page, and then post-process to extract the notebooks. But this is just to wonder out loud whether there is a better way to do this - and whether this is an interesting way of thinking about the relationship of pages to notebooks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    verify-fixedAlready fixed, awaiting verification from the issue reporter to confirm.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions