pandoc-pyplot-2.0.1.0: A Pandoc filter for including figures generated from Matplotlib

Copyright(c) Laurent P René de Cotret 2019
LicenseMIT
Maintainerlaurent.decotret@outlook.com
Stabilityinternal
Portabilityportable
Safe HaskellUnsafe
LanguageHaskell2010

Text.Pandoc.Filter.Scripting

Description

This module defines types and functions that help with running Python scripts.

Synopsis

Documentation

runTempPythonScript Source #

Arguments

:: PythonScript

Content of the script

-> IO ScriptResult

Result with exit code.

Take a python script in string form, write it in a temporary directory, then execute it.

hasBlockingShowCall :: PythonScript -> Bool Source #

Detect the presence of a blocking show call, for example "plt.show()"

type PythonScript = Text Source #

String representation of a Python script

data ScriptResult Source #

Possible result of running a Python script