How to skip execution of code cells with a skip_execute
tag using sphinx with myst_nb extension?
#1056
thiagocrepaldi
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
To set the context, my project is using Sphinx to build documentation and we have recently added the myst_nb as an extension to it.
Our documentation has some jupyter notebook examples which certain code cells can take hours to run, which during regular CI we don't really need to run. However, we do need that all notebooks run, but not all of their cell codes.
We are trying to write our notebooks with a
skip_execute
tag on it.Then we want to configure sphinx+myst-nb to execute all cells, but the ones with the tag
skip_execute
. My request is how to do that using sphinx'sconf.py
file to set this behavior.Later I found https://myst-nb.readthedocs.io/en/latest/configuration.html#cell-tags which seems to say that if I use the
skip-execution
tag, this is done automatically. Is that it or should I do something extra?Beta Was this translation helpful? Give feedback.
All reactions