<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Doing a little research on testing notebooks:</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"> </div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><a href="https://github.com/bollwyvl/nosebook" target="_blank">https://github.com/bollwyvl/nosebook</a></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">is not up-to-date, i.e. will not run with jupyter and maybe not with python3.5.</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">I tested pytest-ipynb, it works but has 2 issues, 1, looks for files starting with test_ 2, uses py.test.</div><div class="gmail_default" style=""><font face="verdana, sans-serif"><a href="https://pypi.python.org/pypi/pytest-ipynb">https://pypi.python.org/pypi/pytest-ipynb</a></font><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Both of the above projects could possibly be modified to work.</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">A very simple option to verify the notebooks run (without error) is to just run this command (you can provide a list of notebooks)</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><div class="gmail_default">$ jupyter nbconvert --to notebook --execute "02 - Quick Start.ipynb"</div><div><br></div><div>If there is an error it will stop and report the error.</div><div><br></div><div><br></div><div>I am also trying to extract the source and result from a notebook (this is easy) and insert them into a doctest. I have parts of this working thanks to the python mailing list.</div><div><br></div><div><br></div><div><br></div></div><div><div><div>Vincent Davis</div><div><a href="tel:720-301-3003" value="+17203013003" target="_blank">720-301-3003</a><span></span><span></span></div></div></div>
</div>