Replies: 3 comments 1 reply
-
If you want to keep ---
title: "specifying option per format"
format:
html: default
ipynb:
execute:
echo: true
execute:
echo: false
---
```{python}
1 + 1
``` Options can be tweaked per format, as Quarto will matched any know options to put same in the right place. ( Even this works format:
html: default
ipynb:
echo: true but a bit less explicit |
Beta Was this translation helpful? Give feedback.
-
Thanks. Actually, what I want is for (a subset of cells) the code to be missing in the ipynb but the figure to remain (and not be overwritten if the student executes the notebook again. This is for an exam where I don't want them to see how I generated the figures. I thought maybe using the |
Beta Was this translation helpful? Give feedback.
-
Thank you. After digging around I think that there was just an issue with the julia support for See #12197 for a replication, I will close this issue as I think the answer is simply that the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
When
#| echo: false
is put into a code cell, it seems to execute the code and then strip out the code ex-post. This isn't a problem with HTML/RevealJS, etc. output because you never need to rerun the notebooks.However, if you also generate ipynb notebooks (with a
ipynb: default
in the format, etc.) then this behavior is not what you really want, because it leaves an empty code cell. If the user ever reruns the notebook then the output (e.g., generated image) disappears since the cell which genreated it is empty.Is there a feature to make this possible and maybe convert the output to be a different sort of ipynb cell that doesn't get overwritten? Maybe even strip out the empty code cells in the transformation?
Beta Was this translation helpful? Give feedback.
All reactions