は、この機能を有効にするには、パッケージがあるようですが、私は、Python 3.5.2にそれで運を持っていない、または2.7.12:jupyterのセル関数でpython doctestを実行できますか?
from ipython_doctester import test
@test
def my_fun():
'''
>>> 2 + 3
6
'''
pass
TypeError: data must be a dict, got: 'ipython_doctester'
それが使用してjupyter細胞からdoctestを実行することが可能ですこのパッケージまたは何か他の方法?
私も%doctest_modeを見ました。Doctestモードをオン/オフしても、実際のDoctestをセルから実行できませんでした。
でも、Python 3.5でも動作します。 – josh