-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Description
To reproduce:
session = WolframLanguageSession()
expr = "Pause[10]"
session.evaluate(f"{expr}", timeout=1)
session.stop()
The culprit might be:
WolframClientForPython/wolframclient/evaluation/kernel/localsession.py
Lines 258 to 259 in 53b03c8
def evaluate_wrap(self, expr, **kwargs): | |
return self.evaluate_wrap_future(expr, **kwargs).result() |
A potential fix:
return self.evaluate_wrap_future(expr, **kwargs).result(timeout=kwargs.get('timeout'))
Which, however, introduces another issue where the session cannot be terminated, as the lock is not released, requiring a manual interruption (CTRL-C).
LouisRustenholz
Metadata
Metadata
Assignees
Labels
No labels