Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (testpypi.python.org).
Help us improve Python packaging - Donate today!

A pandoc filter for executing (python) code and including the results.

Project Description

pandoc-source-exec is a panflute pandoc filter.

It executes code annotated code blocks with the proper executables and adds the output below. Example:

```{ .python .exec }
print('Hello World')
```

The above can be compiled like this:

main:
    pandoc --filter pandoc-source-exec -o example.pdf example.md

The resulting output will include Hello World after the code block.

Installation

Just use pip to install it from pypi

pip install pandoc-source-exec

Future

  • Execute code other than python
  • Refactor interactive execution, build REPL wrappers.
  • Allow configurable pre- and postfixes for the output
Release History

Release History

This version
History Node

0.1.3

History Node

0.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pandoc-source-exec-0.1.3.tar.gz (5.4 kB) Copy SHA256 Checksum SHA256 Source Jun 13, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting