Skip to content

Commit a555475

Browse files
committed
DOC : fix docstrings which were lies
1 parent 83aafff commit a555475

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/pyplot.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ def install_repl_displayhook():
114114
class _NotIPython(Exception):
115115
pass
116116

117-
# see if we have IPython hooks around, if so monkey patch
117+
# see if we have IPython hooks around, if use them
118+
118119
try:
119120
from IPython import get_ipython
120121
ip = get_ipython()
@@ -128,8 +129,7 @@ class _NotIPython(Exception):
128129
# IPython 1.x
129130
ip.register_post_execute(draw_all)
130131

131-
# import failed or sys.displayhook is not of correct type,
132-
# must not have IPython
132+
# import failed or ipython is not running
133133
except (ImportError, _NotIPython):
134134
dh = sys.displayhook
135135

0 commit comments

Comments
 (0)