nbval
nbval copied to clipboard
A py.test plugin to validate Jupyter notebooks
I have been having inconsistent errors recently, however, this most recent one seems to have stuck. It might be related to the number of collected pytest items because otherwise, nothing...
Example at https://twitter.com/ProfCompMod/status/1055845233295060992. Attached file is notebook from that tweet (with wrong extension as GitHub didn't allow upload for ipynb file). [nbval-coverage copy.ipynb.txt](https://github.com/computationalmodelling/nbval/files/2519872/nbval-coverage.copy.ipynb.txt)
nbval must have run the entire .ipynb file to get the new output to compare against the original output. Is this resulting .ipynb file from the run available somewhere? It...
- Better error message for missing error in output compare. - Fail cell if an unrun cell with an expected error does not produce one. cc @mgeier, xref #108.
I didn't try it, but according to @takluyver (see https://github.com/jupyter/nbconvert/issues/730#issuecomment-436670496), `nbval` does *not* raise an error if a cell tagged with `raises-exception` does *not* raise an exception. I think that...
Is there a way to make use of [pytest's pretty assertion rewriting](https://docs.pytest.org/en/latest/example/reportingdemo.html#tbreportdemo) with nbval?
Internally we do a lot of courses with jupyter and we use the `%load` magic to seperate answers from the jupyter notebooks. We can keep some of the python files...
Please support debugging the code in Jupyter cells when they raise an Exception with: ``` pytest --nbval --pdb ``` Probably not easy to do, as I just heard.
Hey guys, nice package. However, I have matplotlib outputting pdf format, so am getting a lot of: ``` Traceback: mismatch 'application/pdf' > ``` I guess the simplest fix would be...
Is there a way to pattern match the actual HTML tags for images? HoloViews returns a binary blob, and I've not been able to get the pattern to match with...