File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,6 +72,10 @@ def _check_dependencies():
7272 raise ImportError (
7373 "The following dependencies are missing to build the "
7474 "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" )
7579
7680_check_dependencies ()
7781
@@ -83,10 +87,8 @@ def _check_dependencies():
8387# The following import is only necessary to monkey patch the signature later on
8488from sphinx_gallery import gen_rst
8589
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 )
9092
9193autosummary_generate = True
9294
You can’t perform that action at this time.
0 commit comments