←back to thread

700 points yen223 | 2 comments | | HN request time: 0s | source
Show context
selectnull ◴[] No.42058087[source]
TIL: caffeinate

Very useful.

replies(5): >>42058262 #>>42058366 #>>42058643 #>>42060502 #>>42063310 #
1. weberer ◴[] No.42060502[source]
It would be cool to have this activate when a Jupyter notebook is currently running a cell, and deactivate automatically when its finished.
replies(1): >>42064216 #
2. eszed ◴[] No.42064216[source]
This can be done by passing a PID. I believe there are other options, as well. (Not at my computer to look it up right now.) I haven't used those features "manually", but I have in scripts that I expect to generate long-running processes.