Pm.sample gets stuck after init with cores > 1

I seem to have solved this on Linux by adding the following to the very top of my notebook, before other imports:

import multiprocessing as mp
mp.set_start_method('forkserver')
4 Likes