pythonRunScript sExecute a sequence of statements as if they were read from a Python file. This is for multi-line code that might contain definitions, control structures, imports, etc. It is great for running Python code from a file.
The return value is a Python dictionary containing all the variables defined in the global scope.
|
|
|
|
|
The Global option may be used to pass a globals dictionary so that variables may be shared between scripts.
|
The object pythonRunScript is a method function with a single argument.
The source of this document is in /build/macaulay2-88fgJW/macaulay2-1.25.11+ds/M2/Macaulay2/packages/Python/doc.m2:270:0.