How to efficiently break up a computationally heavy article into separate notebooks? #8410
Replies: 2 comments 1 reply
-
I am not sure what you want to do exactly. In the R/knitr ecosystem, I would personnaly use In Jupyter, I don't know if there is a tool like the
Use Quarto profile to change what parts/chapters are to be rendered. Could you share a small setup of what you have right now? Preferably as a Git repository. |
Beta Was this translation helpful? Give feedback.
-
have played about with using the book project and tweaking to make it look more manuscript/article like. see github repo. not perfect, but shows the workflow of splitting a manuscript into sections, and might be a good solution for me to work on paper with collaborators (especially as |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Context
I am trying to use (the amazing!) quarto to write an article that has a lot of slow computations. I would like to break the article up into notebooks and use the caching option with the _freeze folder and files, but can't find a solution to "embed" (or similar) both outputs and variables (for inline use), or to split the article text and code into separate parts.
Manuscript approach
The documentation for manuscripts shows how to
n_obs
and i want to write{python} n_obs
inline in index.qmd.quarto render
.Book approach
This is something I haven't tried yet, but I was wondering whether the book project type might be an option here (if one is happy without the manuscript website, etc.). My thinking is that one could split up the article into sections, and use the book chapters config option, and then some custom pdf documentclass format to avoid the new pages per chapter in books, and also make it render like an article. [EDIT: see comment below with link to mock up in github.]
[Side note: it might be nice to split books/articles at different levels depending on how large a chapter/section is, i.e. have the option to split into chapters, but also (sub-)sections if needed. I don't see from the docs that this is possible.]
Question
Beta Was this translation helpful? Give feedback.
All reactions