Provides an interactive shell aka console inside your doctest case.
Shamelessly stolen from interlude package. This one just uses bpython as a default shell if its available.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.