From 9d24b934e4e17bca2b42da54ee1941bfd2a8f057 Mon Sep 17 00:00:00 2001 From: Knut-Frode Dagestad Date: Thu, 9 Jul 2026 21:43:14 +0200 Subject: [PATCH] Showing matplotlib animations as html5 in Sphinx --- docs/source/conf.py | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/source/conf.py b/docs/source/conf.py index 4cae937..b51462f 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -1,5 +1,6 @@ import matplotlib matplotlib.use('Agg') +matplotlib.rcParams['animation.html'] = 'html5' import os, sys sys.path.insert(0, os.path.abspath('../..'))