##// END OF EJS Templates
Restore some functionality of the sphinx directive....
Restore some functionality of the sphinx directive. See #11362 The issue is in 2 part, before IPython 7.0 the input splitter was state full, this was (in part) due to readline. The second part is that because of this, we had to be a bit adressive of what was considered complete code (it had to have 2 new line). This is now not required anymore as we can submit stuff as a whole. I hope that this fixes that. I have another fix in mind that count (and reset) the number of consecutive blank line, but that will be more complicated end code.

File last commit:

r20278:8f4dcac7
r24710:73f493f5
Show More
Matplotlib Switching.ipynb
654 lines | 48.5 KiB | text/plain | TextLexer
/ tools / tests / mpl-switch / Matplotlib Switching.ipynb
In [1]:
# Should pop up a GUI window
%matplotlib
import matplotlib.pyplot as plt
plt.plot([1,2,3])
Using matplotlib backend: MacOSX
Out[1]:
[<matplotlib.lines.Line2D at 0x10ce05350>]
In [2]:
# Should make an inline figure
%matplotlib inline
plt.plot([1,2,3])
Out[2]:
[<matplotlib.lines.Line2D at 0x10cd5dfd0>]
No description has been provided for this image
In [3]:
# New GUI window--should *NOT* have the visual settings of inline
%matplotlib qt
plt.plot([1,2,3])
Out[3]:
[<matplotlib.lines.Line2D at 0x10cd9cb10>]