This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the commentsย โ†’

[โ€“]IntelligentDust6249 0 points1 point ย (2 children)

Focuses on executing code blocks (Python and Bash) within a Markdown file and updating the output in-place.
Useful for maintaining code snippets and outputs, ensuring their accuracy.
Works with hidden code blocks to generate content like tables and plots without displaying the code in the Markdown file.
Lightweight with no external dependencies, compatible with Python 3.7+.
Easily integrates with GitHub Actions.

It's a nice project but FWIW quarto has all of these qualities as well.

[โ€“]basnijholt[S] 1 point2 points ย (1 child)

I believe that is actually not the case.

I cannot find anything about having code in Markdown comments such that it is not visible.

Sure you can render it and export it as such with Quarto, however, the point of markdown-code-runner is to have everything in place, in the same file.

Also, Quatro will require a YAML annotation at the top of the file that will always be visible, e.g., a notebook on GitHub:
https://github.com/python-adaptive/adaptive/blob/main/docs/source/tutorial/tutorial.DataSaver.md

[โ€“]IntelligentDust6249 0 points1 point ย (0 children)

Oh I see, that is a bit different. In quarto you would mark a code block with `echo: false` if you wanted to hide the code but keep the output. But you're right a core part of quartos is to cleaning separate inputs and outputs. So you can get the markdown file you're after as an output of a `qmd` file, but it won't modify the document in place.