Skip to content

Writing executable Sphinx documentation with the myst-parser #1136

Discussion options

You must be logged in to vote

Hi @florian-wagner, thanks for opening this discussion!

In the Sphinx space, Executable Books developed (and maintain) the MyST-NB project. This package is responsible for ingesting notebook-like formats and handling the executable code blocks/embedded outputs in the file. It sounds like this is the tool that you need!
With myst-nb, you can author text-based notebooks that play nicely with VCS but are executed at build time.

One thing that I'm unsure of is whether you need doctest support? The workflow that I'm envisaging here is effectively "write your tests as notebooks", such that a test fails if it causes the notebook execution to fail (e.g. bare asserts). Actual doctest support is no…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@florian-wagner
Comment options

Answer selected by florian-wagner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants