Show More
@@ -43,8 +43,12 b' ipython_promptout:' | |||
|
43 | 43 | ipython_mplbackend: |
|
44 | 44 | The string which specifies if the embedded Sphinx shell should import |
|
45 | 45 | Matplotlib and set the backend. The value specifies a backend that is |
|
46 |
passed to `matplotlib.use()` |
|
|
47 | specified in conf.py at all, then the default value of 'agg' is used. | |
|
46 | passed to `matplotlib.use()` before any lines in `ipython_execlines` are | |
|
47 | executed. If specified in conf.py as `None` or not specified in conf.py at | |
|
48 | all, then no call to `matplotlib.use()` is made. Then, matplotlib is loaded | |
|
49 | only if specified in `ipython_execlines` or if the @savefig pseudo | |
|
50 | decorator is used. In the latter case, matplotlib is imported and its | |
|
51 | default backend is used. | |
|
48 | 52 | ipython_execlines: |
|
49 | 53 | A list of strings to be exec'd for the embedded Sphinx shell. Typical |
|
50 | 54 | usage is to make certain packages always available. Set this to an empty |
@@ -696,8 +700,7 b' class IPythonDirective(Directive):' | |||
|
696 | 700 | promptout, mplbackend, exec_lines) = self.get_config_options() |
|
697 | 701 | |
|
698 | 702 | if self.shell is None: |
|
699 | ||
|
700 | if mplbackend and mplbackend is not 'none': | |
|
703 | if mplbackend: | |
|
701 | 704 | import matplotlib |
|
702 | 705 | # Repeated calls to use() will not hurt us since `mplbackend` |
|
703 | 706 | # is the same each time. |
General Comments 0
You need to be logged in to leave comments.
Login now