GWeindel / hmp

Repository for the hmp python package
BSD 3-Clause "New" or "Revised" License
32 stars 8 forks source link

note on mp in vscode on mac in tutorial 2 #55

Closed jelmerborst closed 1 year ago

jelmerborst commented 1 year ago

multiprocessing in an interactive window in VS code on Mac created strange behavior due to continuously rerunning code. This can be fixed by setting the start method of mp to 'fork' (default is 'spawn'). I added a note in the tutorial explaining how to fix this if you run into this specific issue. Given that the 'spawn' method will become the mp default across platforms, I assume this will be fixed at some point in VS code, which is why I didn't adjust anything in HMP code base.