Files
openide/python/testData/debug/test_joblib.py
Andrey Lisin 1199e0bdaa PY-36882 Fix debugger not working properly with joblib.Parallel when using loky backend
GitOrigin-RevId: 392e04e2e10ae404caf8c561a7c951e7eaea3c9c
2024-01-11 18:52:11 +00:00

9 lines
146 B
Python

from joblib import Parallel, delayed
def f(i):
print(i)
return i*i
Parallel(n_jobs=2, backend='loky')(delayed(f)(i) for i in range(3))