<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 Advanced
Step1:  Accessing/Changing Multiprocessing Settings
To check the number of processors that will be used whenever multiprocessing is invoked, call phoebe.multiprocessing_get_nprocs.  By default, this will be the number of detected CPUs on the machine.
Step2:  To disable multiprocessing, we can call phoebe.multiprocessing_off.
Step3:  To re-enable multiprocessing with all available CPUs on the machine, we can call phoebe.multiprocessing_on.
Step4:  Or to manually set the number of processors to use, we can call phoebe.multiprocessing_set_nprocs.
<ASSISTANT_TASK:>
Python Code:
#!pip install -I "phoebe>=2.4,<2.5"
import phoebe
Explanation: Advanced: Running PHOEBE with Multiprocessing
Setup
Let's first make sure we have the latest version of PHOEBE 2.4 installed (uncomment this line if running in an online notebook session such as colab).
End of explanation
print(phoebe.multiprocessing_get_nprocs())
Explanation: Accessing/Changing Multiprocessing Settings
To check the number of processors that will be used whenever multiprocessing is invoked, call phoebe.multiprocessing_get_nprocs.  By default, this will be the number of detected CPUs on the machine.
End of explanation
phoebe.multiprocessing_off()
print(phoebe.multiprocessing_get_nprocs())
Explanation: To disable multiprocessing, we can call phoebe.multiprocessing_off.
End of explanation
phoebe.multiprocessing_on()
print(phoebe.multiprocessing_get_nprocs())
Explanation: To re-enable multiprocessing with all available CPUs on the machine, we can call phoebe.multiprocessing_on.
End of explanation
phoebe.multiprocessing_set_nprocs(2)
print(phoebe.multiprocessing_get_nprocs())
Explanation: Or to manually set the number of processors to use, we can call phoebe.multiprocessing_set_nprocs.
End of explanation
<END_TASK>