Use parametrisation to render many ipynb notebooks from a template #9107
-
DescriptionI have a problem with getting parametrisation right. My idea is is have an with following cells:
# | tags: [parameters]
subject = 101 print(subject) and then create notebook for every participant where I could later adjust thing manually.
gives me a file I am on macOS 14.4 with quarto 1.5.23 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 13 replies
-
I am able to create a ---
title: "Test"
format: ipynb
jupyter: conda-paths-3.12
execute:
enabled: true
---
```{python}
# | tags: [parameters]
subject = 101
```
```{python}
print(subject)
``` and running
In this setup in output file I have 2 cells where variable subject is defined how can i make it only one cell? and how I can ensure that parameter will occur in the output filename? |
Beta Was this translation helpful? Give feedback.
ipynb
works when I add the tag, but not via comment tag, but to cell via jupyter interface - in that regards the documentation was confusing for me;