Add support for Python 3.12
Closes #314 (closed)
Refs https://gitlab.teklia.com/workers/dan/-/merge_requests/197
I introduced the threshold on the attention GIF comparison because, for some reason, there was a small difference in CI but not reproducible locally.
Edited by Eva Bardou