-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code blocks in lists not executed - only top-level code supported? #208
Comments
Yes, that's currently all that is implemented. |
On purpose? Or is this limitation (and the example above) considered a bug? |
This is an upstream discussion: quarto-dev/quarto-cli#9970. Particularly: quarto-dev/quarto-cli#9970 (comment), since this package outputs ipynb JSON the same as Jupyter does. |
I see, the explanation makes sense. From a user perspective, however, I think it's quite unfortunate, I think it would be a very useful feature. For instance, I had a list of different requirements and it would be nice to illustrate each of these requirements with a short code block or generated plot. Putting them later at a top-level introduced unnecessary separation and arguably made it more difficult to read. |
The only ways we'll be able to resolve this is either:
|
Nice, I didn't know that this is possible! |
I didn't either 😄 this issue just reminded me of the release notes of 1.6 and then I thought maybe one could be used to solve the other |
I tried to add item-specific code to a Markdown list but it seems currently QuartoNotebookRunner only handles top-level code blocks?
A simple comparison with knitr:
Julia
test_list.qmd:
I ran
A screenshot of the resulting HTML file:
R
test_list_r.qmd:
I rendered it within RStudio, resulting in the following ouput:
The text was updated successfully, but these errors were encountered: