There seems to be a package to enable this functionality, but I have no luck with it in python 3.5.2, or 2.7.12:
from ipython_doctester import test
@test
def my_fun():
'''
>>> 2 + 3
6
'''
pass
TypeError: data must be a dict, got: 'ipython_doctester'
Is it possible to run a doctest from a jupyter cell using this package or some other way?
I've looked at %doctest_mode also, and I see that it turns Doctest mode off and on, but have been unable to run an actual doctest from a cell.