Replies: 1 comment
-
I am experimenting with the same. It looks like this can be achieved using project profiles. A working example.
To generate the exercise notebook:
To generate the solution notebook:
By the way, I combine this with the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm thinking of using Quarto to deliver a workshop, producing slides, notes and Jupyter notebooks from a common set of source documents. As part of this I'll be preparing exercises for attendees to attempt using Python code in Jupyter notebooks - and then separately providing worked solutions for these exercises. I've got the following workflow working:
my-exercise.qmd
. For chunks that I want attendees to try themselves, include#| tags: [solution]
in the chunk options.quarto convert my-exercise.qmd -o my-solution-notebook.ipynb
. (This will be the solution notebook.)nbformat
, to create the exercise notebook from the solution notebook.So it works, if a bit messily (I can make the Python a bit neater by turning it into a script accepting command-line arguments). Is this the best way of doing it, or is there a way of filtering the 'solution' chunks out using Quarto, perhaps at the
quarto convert
stage?Thanks for your help!
Beta Was this translation helpful? Give feedback.
All reactions