JuliaPy / PyCall.jl

Package to call Python functions from the Julia language
MIT License
1.47k stars 190 forks source link

Using the scikitlearn libs thru pycall is not thread-safe #852

Closed ppalmes closed 4 years ago

stevengj commented 4 years ago

Calling Python is not thread safe; I don't think there is anything we can do about this…

stevengj commented 4 years ago

(We'd have to wrap every call to Python with PyEval_AcquireThread and PyEval_ReleaseThread, which doesn't seem practical…)

tk3369 commented 4 years ago

So more practically, a user can do that manually for specific python calls?