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
{{ message }}
Repository navigation
ipynb reader fails on execute_result with null execution_count #12008
The input is the same as in the PR above. The nbformat v4 schema allows "execution_count": null on an execute_result, but Data.Ipynb has executeCount :: Int. The v4 parse fails, so the error shown comes from the v3 fallback. nbformat.validate accepts the file. I expected the notebook to convert, with no execution_count attribute on the output div.
jgm/ipynb#4 changes executeCount to Maybe Int. On the pandoc side, the writer then fails to compile at fromMaybe 0 (drop it). The reader still compiles, but it would write execution_count="Just 3", so outputToBlock needs maybe [] (\n -> [("execution_count", tshow n)]) ec in place of [("execution_count",tshow ec)].
Activity