-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nb_execution_mode=auto should take into account cells with no expected output #416
Comments
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗 |
Heya, yeh happy to see proposals/suggestions thanks 👍 I'd note an alternative solution though, now we have file-level configuration: https://myst-nb.readthedocs.io/en/latest/configuration.html#file-level-configuration if you want certain notebooks executed and others not, you could set globally {
"metadata": {
"mystnb": {
"execution_mode": "off"
}
}
} or visa-versa |
Yes, I think that will be a good solution for some of the projects I maintain (e.g. where I definitely want to keep the outputs as they are, e.g. when they are a product of cells with a long run time), but the |
We have a similar issue: A lot of cells in our notebooks do not produce any output. This, we would like a "lazy" option: Instead of running if any output is missing, run if no output exists. |
Describe the bug
context and expectation
When I use
nb_execution_mode=auto
I would expect that execution is skipped when all the code cells are run.bug
But instead the execution is always run.
problem
This is because some of the cells
I think none of these cases should trigger the execution.
I'm happy to propose a fix in a PR
Reproduce the bug
Run all the cells in the notebook referenced above, save it. Then run
sphinx-build -b html -D nb_execution_mode=auto . _build/html
on itList your environment
No response
The text was updated successfully, but these errors were encountered: