File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -114,8 +114,11 @@ def _copy_docstring_and_deprecators(method, func=None):
114114
115115def install_repl_displayhook ():
116116 """
117- Install a repl display hook so that any stale figure are automatically
118- redrawn when control is returned to the repl.
117+ Connect to the display hook of the current shell.
118+
119+ The display hook gets called when the read-evaluate-print-loop (REPL) of
120+ the shell has finished the execution of a command. We use this callback
121+ to be able to automatically update a figure in interactive mode.
119122
120123 This works both with IPython and with vanilla python shells.
121124 """
@@ -153,7 +156,7 @@ def post_execute():
153156
154157def uninstall_repl_displayhook ():
155158 """
156- Uninstall the Matplotlib display hook.
159+ Disconnect from the display hook of the current shell .
157160
158161 .. warning::
159162
You can’t perform that action at this time.
0 commit comments