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

Safe HaskellNone
LanguageHaskell2010

Text.Pandoc.Filter.Scripting

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.

addPlotCapture Source #

Arguments

:: FilePath

Path where to save the figure

-> PythonScript

Raw code block

-> IO PythonScript

Code block with added capture

Modify a Python plotting script to save the figure to a filename.

hasBlockingShowCall :: PythonScript -> Bool Source #

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