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...
Following code throws an warning, while the same expression successfully evaluates in other Wolfram clients ```python from wolframclient.evaluation import WolframLanguageSession from wolframclient.language import wl, wlexpr session = WolframLanguageSession() session.evaluate(wlexpr("Complexes \[LongRightArrow]...
Happy Whatever Day it is when You read this. I wanted to share this with You in hopes that You could update the tooling to support newer python implementations because...