File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -248,10 +248,13 @@ Python processes for parallel computing. Unfortunately this is a violation of
248
248
the POSIX standard and therefore some software editors like Apple refuse to
249
249
consider the lack of fork-safety in Accelerate / vecLib as a bug.
250
250
251
- In Python 3.4+ it is now possible to configure ``multiprocessing `` to use the
252
- 'forkserver' or 'spawn' start methods (instead of the default 'fork') to manage
253
- the process pools. This makes it possible to not be subject to this issue
254
- anymore.
251
+ In Python 3.4+ it is now possible to configure ``multiprocessing `` to
252
+ use the 'forkserver' or 'spawn' start methods (instead of the default
253
+ 'fork') to manage the process pools. To work around this issue when
254
+ using scikit-learn, you can set the JOBLIB_START_METHOD environment
255
+ variable to 'forkserver'. However the user should be aware that using
256
+ the 'forkserver' method prevents joblib.Parallel to call function
257
+ interactively defined in a shell session.
255
258
256
259
If you have custom code that uses ``multiprocessing `` directly instead of using
257
260
it via joblib you can enable the 'forkserver' mode globally for your
You can’t perform that action at this time.
0 commit comments