Copyright | (c) Laurent P René de Cotret 2019 |
---|---|
License | MIT |
Maintainer | laurent.decotret@outlook.com |
Stability | internal |
Portability | portable |
Safe Haskell | Unsafe |
Language | Haskell2010 |
This module defines types and functions that help with running Python scripts.
Synopsis
- runTempPythonScript :: PythonScript -> IO ScriptResult
- hasBlockingShowCall :: PythonScript -> Bool
- type PythonScript = Text
- data ScriptResult
Documentation
:: 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