You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if numpy is not available in the environment we get the following out.md
```{.python .numberLines startFrom="1"}
import numpy as np``````{.stderr .error}
Traceback (most recent call last): File "source.py", line 1, in <module> import numpy as npModuleNotFoundError: No module named 'numpy'```
realizing our mistake we install numpy and attempt to recompile
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.
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
and compile it with the command
if numpy is not available in the environment we get the following
out.md
realizing our mistake we install numpy and attempt to recompile
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.
The text was updated successfully, but these errors were encountered: