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