Skip to main content

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


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 details)

Uploaded Source

File details

Details for the file chaoflow.testing.ipython-0.4.zip.

File metadata

File hashes

Hashes for chaoflow.testing.ipython-0.4.zip
Algorithm Hash digest
SHA256 ac4befbf5facd5d70ed96f6a0dd5557d4e1882a3902cef279cd934da1b35269f
MD5 9782a18c35192c3f27d099fceefaefb4
BLAKE2b-256 a09333754296c278fc708328fd43f111d31a11196ea269a80d6e56c2b3a943b1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page