Installation InstructionsΒΆ

doctest2 is a normal distutils library. Installation involves using the provided file with the distribution. Most of the time, this means running:

python install --user

In addition, doctest2 has several dependencies, some optional and some not.

  • pygments is required (used for tokenization/parsing)

  • sphinx is optional (used for the sphinx support)


    Currently Sphinx support for 3.x is limited. You must download from the hg repository at bitbucket, and download jinja2 separately.

Previous topic

doctest — Test interactive interpreter sessions

Next topic

An introduction to doctest2 for existing users of doctest

This Page