How to use multithread in IJulia

I tried running julia -p2, using IJulia and notebook(), then in my notebook, I ran nprocs(), but it says the function is undefined.

You need to
using Distributed

1 Like

Thanks! This saves the day.