Skip to main content


Project description

# PyExec

[![Documentation Status](]( [![Build Status](](

A sphinx extension for running python code and displaying both the input and
output [sphinx documentation](

In the add `PyExec` to your extensions.

In the ReStructuredText file, use the `exec` environment

.. exec::
print 2 + 2

To output python code & the results in your documentation.

>> print 2 + 2

Note that you need to include the `print` statement for the output to be shown. To see it in action, checkout the [Properties documentation](

Based on


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

sphinxcontrib-pyexec-0.0.4.tar.gz (4.3 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page