User ipython interactively in your doctest
Project description
Introduction
An interactive ipython shell to be used in your doctest, very similar to and based on interlude.
Usage
>>> from chaoflow.testing.ipython import ipshell, dtipshell
By default you will get the default fancy ipython prompt:
>>> ipshell( locals())
In order to get a prompt suitable for doctest generation, pass doctest=True:
>>> ipshell( locals(), doctest=True)
or use dtipshell, which does exactly that:
>>> dtipshell( locals())
License
chaoflow.testing.ipython is licensed under LGPLv3. Please let me know if this presents a problem for you.
Changelog
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
chaoflow.testing.ipython-0.4.zip
(27.5 kB
view hashes)
Close
Hashes for chaoflow.testing.ipython-0.4.zip
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac4befbf5facd5d70ed96f6a0dd5557d4e1882a3902cef279cd934da1b35269f |
|
MD5 | 9782a18c35192c3f27d099fceefaefb4 |
|
BLAKE2b-256 | a09333754296c278fc708328fd43f111d31a11196ea269a80d6e56c2b3a943b1 |