Closed
Description
The following fails:
from functools import lru_cache
import adaptive
adaptive.notebook_extension()
@lru_cache
def g(x):
return x
def f(x):
return g(x)
learner = adaptive.SequenceLearner(f, range(2))
runner = adaptive.Runner(learner, adaptive.SequenceLearner.done)
runner.live_info()
Related to loky issue: joblib/loky#268
This worked fine with the concurrent.futures.ProcessPoolExecutor
.