How do I change the order of execution of code cells, inline code or sections in a Quarto single document or multiple documents in a project? #10637
Replies: 3 comments 5 replies
-
@cscheid is that something the feature you merged recently can do? |
Beta Was this translation helpful? Give feedback.
-
Hi. I haven't tried it yet, but:
We will define some values here. [ The output of that inline code cell is . Etc. Shouldn't include {{< contents a-span >}}, like the text below? We will define some values here. [ The output of that inline code cell is {{< contents a-span >}}. Etc. Moreover:
|
Beta Was this translation helpful? Give feedback.
-
My use case involves a lot of code, followed by markdown sections for the document, followed by an appendix that documents the code. It would be incredibly useful to be able to embed or display code blocks from earlier in the document. It sounds like the new Contents shortcode could be the solution. My first attempts haven't been successful (even using the minimal example given). I've submitted an issue separately. This comment is just to express support for this functionality. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Hi, Quarto newbie here.
I think it is really common to see a few results in abstracts, or in the first pages of a presentation, so I wanted to add inline code into my Abstract that shows some numbers that are calculated elsewhere in my manuscript. I know that YAML abstract does not allow inline code, but there is an extension for that. I thought there would be a easy way to change the order of execution of chapters, sections, or documents to render. I have already checked the guide and searched for similar questions already discussed but they seem to try to solve more complex problems. The feature I am looking for seems to be kind of obvious for me, so I guess there is something quite easy or obvious that I am not seeing. I am using the last version of Quarto with Python code cells only. I know that Jupyter notebooks execute codes at the order they appear in the the text, an that OJS is more flexible, but I need to use Python.
Could you please help me?
Beta Was this translation helpful? Give feedback.
All reactions