Is it is possible to set or limit the number of cores a python script can use in the terminal?
I'm not familiar with multicore processing in python but I know there is a simple way to do this in Julia. You can create a REPL using 4 cores by typing julia --procs=4
. I was wondering if there exists something similar in python, kind of like python --n_cores=4 python_script.py
.