Closed erooke closed 2 years ago
That's a bug. These sorts of cases are cached so that the output is as complete as possible if code execution is disabled on a subsequent run, but I need to add cache invalidation for these cases whenever code execution is permitted. It looks like just a few small changes should fix this.
This should be fixed in the dev version on GitHub. A new release including this will be on PyPI soon.
Thanks! This is fixed on my end using the GitHub version
If a file fails to run code due to a failed import codebraid will not try to run that code again until the cache is cleared.
If we have the following file
test.md
if numpy is not available in the environment we get the following
out.md
we will get the exact same
out.md
. Clearing the cache withrm -rf _codebraid
and rerunning corrects the error.This is very non-obvious behavior to me. I would expect any code block which failed to run to be re-run on the next attempt.