WolframClientForPython
WolframClientForPython copied to clipboard
Call Wolfram Language functions from Python
We require the execution of Wolfram in a dynamic cloud environment, where fixed containers, IPs, or machines are not employed. Utilizing entitlements in WolframScript has proven effective, as illustrated by...
To reproduce: ```python session = WolframLanguageSession() expr = "Pause[10]" session.evaluate(f"{expr}", timeout=1) session.stop() ``` The culprit might be: https://github.com/WolframResearch/WolframClientForPython/blob/53b03c87084aa9a6705c53ce2d6b6ebc8eaa6db8/wolframclient/evaluation/kernel/localsession.py#L258-L259 A potential fix: ```python return self.evaluate_wrap_future(expr, **kwargs).result(timeout=kwargs.get('timeout')) ``` Which, however, introduces another...