Hi, I wrote a py.test plugin that discovers and runs unit tests written as cells of IPython notebooks, it also supports fixtures, see: https://github.com/zonca/pytest-ipynb http://zonca.github.io/2014/09/unit-tests-ipython-notebook.html Cheers, Andrea