Skip to main content
Help us improve Python packaging – donate today!


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


Release history Release notifications

This version
History Node


History Node


History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
sphinxcontrib-pyexec-0.0.4.tar.gz (4.3 kB) Copy SHA256 hash SHA256 Source None Jun 14, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page