8000 DOC : added docstring to install_repl_displayhook · matplotlib/matplotlib@f41ae9e · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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)
0