cmd#

Session.cmd(value: str, do_eval: bool = True) Any#

Run a command in EnSight and return the results.

Parameters:
valuestr

String of the command to run

do_evalbool, optional

Whether to perform an evaluation. The default is True.

Returns:
result

Result of the string being executed as Python inside EnSight.

Examples

>>> print(session.cmd("10+4"))
    14