If any Python process is running, keep the screen on - Windows 11
If any Python process is running, keep the screen on - Windows 11
If any Python process is running, keep the screen on - Windows 11
Re: If any Python process is running, keep the screen on - Windows 11
[https://github.com/wakepy/wakepy](https://github.com/wakepy/wakepy)
```
$ pip install wakepy
```
```
from wakepy import keep
with keep.presenting():
...
```
It [does](https://github.com/wakepy/wakepy/blob/main/src/wakepy/methods/windows.py) the same [thing @FranckDernoncourt did](https://superuser.com/a/1935422/28322) but is cross-platform and concise.
I always use `with keep.running():` because I'm not interested in imaging or progress-reporting, just need results of long computation.
```
$ pip install wakepy
```
```
from wakepy import keep
with keep.presenting():
...
```
It [does](https://github.com/wakepy/wakepy/blob/main/src/wakepy/methods/windows.py) the same [thing @FranckDernoncourt did](https://superuser.com/a/1935422/28322) but is cross-platform and concise.
I always use `with keep.running():` because I'm not interested in imaging or progress-reporting, just need results of long computation.