PythonInvoke(ModuleName,FunctionName,Param,…)
ModuleName. Module name that contains function.
FunctionName. Function name.
Param1, Param2, …, ParamN. Function parameter.
NOTE. To define the parameter, specify either the number or the address of the cell where it is located.
It returns function execution result in the Python language.
NOTE. Before using the Python functions, make sure that integration between Python and Foresight Analytics Platform is executed.
The function is outdated, use PythonInvokeModule.
| Formula | Result | Description |
| =PythonInvoke("math", "fabs", 4) | 4 | The module of the 4 number. |
| =PythonInvoke("math", "fabs", C3) | 4 | The module of the number from the C3 cell. The C3 cell contains the 4 number. |
| =PythonInvoke(C4, "fabs", C3) | 9 | The module of the number from the C3 cell. The C4 cell contains the "math" text value, the C3 cell - the -9 number. |
NOTE. math is the Python language system module containing mathematical functions, fabs is the Python language system function contained in the math module and that returns absolute value of the number.
See also: