Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f41ae9e

Browse files
committed
DOC : added docstring to install_repl_displayhook
1 parent f4efac1 commit f41ae9e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/matplotlib/pyplot.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,12 @@ def _backend_selection():
113113

114114

115115
def install_repl_displayhook():
116+
"""
117+
Install a repl display hook so that any stale figure are automatically
118+
redrawn when control is returned to the repl.
119+
120+
This works with both IPython terminals and vanilla python shells.
121+
"""
116122
global _BASE_DH
117123
global _IP_REGISTERED
118124

0 commit comments

Comments
 (0)