File tree 1 file changed +6
-4
lines changed 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,10 @@ def _check_dependencies():
72
72
raise ImportError (
73
73
"The following dependencies are missing to build the "
74
74
"documentation: {}" .format (", " .join (missing )))
75
+ if shutil .which ('dot' ) is None :
76
+ raise OSError (
77
+ "No binary named dot - graphviz must be installed to build the "
78
+ "documentation" )
75
79
76
80
_check_dependencies ()
77
81
@@ -83,10 +87,8 @@ def _check_dependencies():
83
87
# The following import is only necessary to monkey patch the signature later on
84
88
from sphinx_gallery import gen_rst
85
89
86
- if shutil .which ('dot' ) is None :
87
- raise OSError (
88
- "No binary named dot - you need to install the Graph Visualization "
89
- "software (usually packaged as 'graphviz') to build the documentation" )
90
+ # On Linux, prevent plt.show() from emitting a non-GUI backend warning.
91
+ os .environ .pop ("DISPLAY" , None )
90
92
91
93
autosummary_generate = True
92
94
You can’t perform that action at this time.
0 commit comments