Replies: 2 comments 1 reply
-
Hi @ketozhang, My answer here is not the definitive answer; it's a personal opinion that I hope reflects the wider ethos of our collaboration. In MyST / JB, we're trying to capture as much information about reproducibility as possible. I think it's important that a floating Markdown file can at least contain enough information about how to execute it, even if that's just a string that requires additional context in The important information is not so much "this is executable", but rather "this file uses kernel". In Jupyter Book 2 / MyST-MD, we're thinking about wider execution improvements such as execution strategies that allow mixing local and remote execution. We could look to lift the kernel frontmatter up to the project, so that any file with code cells / eval expressions would use this metadata. At this point, Jupyter Book 1 is in its maintenance phase, so we probably won't architect such a new feature there. Does this answer your question? :) |
Beta Was this translation helpful? Give feedback.
-
yes: https://myst-nb.readthedocs.io/en/latest/authoring/basics.html#text-based-notebooks
|
Beta Was this translation helpful? Give feedback.
-
I have many notes that have executable content. I do not want to this long frontmatter to all of them:
Is there a shorter way to mark executable documents or a config to assume all markdown files are executable MyST markdown?
Beta Was this translation helpful? Give feedback.
All reactions