Doctest-related utilities for IPython.
For most common uses, all you should need to run is:
from IPython.dtutils import idoctest
See the idoctest docstring below for usage details.
Interactively prompt for input and run it as a doctest.
To finish entering input, enter two blank lines or Ctrl-D (EOF). If you use Ctrl-C, the example is aborted and all input discarded.
Run a the input source as a doctest, in the caller’s namespace.