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.
2021-08-04T09:47:34Z
matthew-brett
Future
open
One or more notebooks embedded in page
https://github.com/quarto-dev/quarto-cli/issues/77