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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.