##// END OF EJS Templates
add `ConsoleWidget.check_complete` flag...
add `ConsoleWidget.check_complete` flag disables input-parsing in the QtConsole, which is inappropriate for non-Python kernels. Disabling check_complete forces shift-enter to execute, just like the Notebook.

File last commit:

r9190:20a102a5
r11779:e3e99a13
Show More
pylab_figshow.py
23 lines | 661 B | text/x-python | PythonLexer
Fernando Perez
Add manual test file as per review by @minrk.
r6539 """Manual test for figure.show() in the inline matplotlib backend.
This script should be loaded for interactive use (via %load) into a qtconsole
or notebook initialized with the pylab inline backend.
Expected behavior: only *one* copy of the figure is shown.
For further details:
https://github.com/ipython/ipython/issues/1612
https://github.com/matplotlib/matplotlib/issues/835
"""
import numpy as np
import matplotlib.pyplot as plt
plt.ioff()
x = np.random.uniform(-5, 5, size=(100))
y = np.random.uniform(-5, 5, size=(100))
f = plt.figure()
plt.scatter(x, y)
plt.plot(y)
f.show()