How do I keep my ML code running in the background in Anaconda Jupyter notebook even if my PC goes to sleep? Is there a way? Note: I do not want to change my sleep settings to sleep never.
I do not think that is possible! The training should be suspended when the machine is in sleep. It will resume the calculations seamlessly right after the machine awakes.
While this is the generic behavior and you do not like it, other options can be thought of depending on how are you running the Jupyter notebook, in local? Then which operating systems? behavior in mac os is different from ubuntu when sleep. In mac you can use caffeinate python ...
to keep the machine from sleeping till this script runs.
Another thing is, is it possible to just do just "display sleep" in mac os. Then the background process keeps running. Hope it helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With