diff --git a/doc/conf.py b/doc/conf.py
index dcf8a48e4f2ee7b07351137f908208fbe4c327ca..18dc611024c4501bf70025e3f1bbad4c46b4addb 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -282,4 +282,4 @@ sphinx_gallery_conf = {
     'gallery_dirs': 'tutorial/auto_examples'}
 
 # Generate the plots for the gallery
-plot_gallery = 'True'
+plot_gallery = True