-
Notifications
You must be signed in to change notification settings - Fork 51
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
0.10.0 release captures output even when ';' is present #194
Comments
I don't think that was intended. I see there's also now a PR adding a failing test (#195). I'm a bit puzzled, though, because I thought this was up to the kernel - I thought nbval wouldn't receive an |
Thanks for the detective work! That vaguely makes sense - IPython's I think this is a bug in IPython. Specifically, the code deciding whether to display output uses the latest history entry, and if that's not the cell currently executing, it can get this wrong (presumably in either direction). See here: I don't think this has been reported yet, but I've only done a very superficial search for it. If someone else could check it and do a bug report, that would be valuable. |
Many of the results are random since the test data generated by the notebook is random. Also include mitigation for computationalmodelling/nbval#194
Many of the results are random since the test data generated by the notebook is random. Also include mitigation for computationalmodelling/nbval#194
Many of the results are random since the test data generated by the notebook is random. Also include mitigation for computationalmodelling/nbval#194
Hi,
I'd frequently add a semicolon to silence a notebook's output instead of sanitizing it, when I didn't care about the output but I did care about the cell actually running.
The new release seems to get the cell output, even when the semicolon is present, so when it compares that output against the saved cell, it finds a discrepancy:
was this intended? I'm currently removing all the semicolons from my notebooks and sanitizing the outputs so the tests work again, but I thought this was an unexpected behaviour, so I wanted to ask.
Cheers,
The text was updated successfully, but these errors were encountered: