testipynb
Project description
Unit-testing for a collection of jupyter notebooks. testipynb
relies on nbconvert to run the notebooks and catches errors so that they are output (with syntax highlighting!) when unit-tests are run.
why?
If you want to share your notebooks and be confident that they _should_ work on someone else’s machine
If you are using notebooks to generate figures in a publication and want to ensure they are reproducible (powerful when connected with cron jobs on travis-ci)
installation
pip install testipynb
usage
import testipynb
import unittest
NBDIR = '../notebooks'
class TestNotebooks(unittest.TestCase):
def test_notebooks(self):
Test = testipynb.TestNotebooks(directory=NBDIR)
self.assertTrue(Test.run_tests())
if __name__ == "__main__":
unittest.main()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
testipynb-0.0.1.tar.gz
(5.2 kB
view hashes)
Built Distribution
Close
Hashes for testipynb-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e560cf81e8d9cd72c445c9e568f11f18d58f43fcc5da9c4c77236d6a96e91ad |
|
MD5 | 704469d4ed1d2acf84012abc16cb00a8 |
|
BLAKE2b-256 | 6daeb8725dbb0e24ca313046e70e27aced03db30de9183c91cce8170f173f017 |