##// END OF EJS Templates
MNT: only try to use mpl.use if safe...
Thomas A Caswell -
Show More
@@ -881,10 +881,8 b' class IPythonDirective(Directive):'
881 881 # EmbeddedSphinxShell is created, its interactive shell member
882 882 # is the same for each instance.
883 883
884 if mplbackend:
884 if mplbackend and 'matplotlib.backends' not in sys.modules:
885 885 import matplotlib
886 # Repeated calls to use() will not hurt us since `mplbackend`
887 # is the same each time.
888 886 matplotlib.use(mplbackend)
889 887
890 888 # Must be called after (potentially) importing matplotlib and
General Comments 0
You need to be logged in to leave comments. Login now