File tree 1 file changed +6
-3
lines changed
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):
114
114
115
115
def install_repl_displayhook ():
116
116
"""
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.
119
122
120
123
This works both with IPython and with vanilla python shells.
121
124
"""
@@ -153,7 +156,7 @@ def post_execute():
153
156
154
157
def uninstall_repl_displayhook ():
155
158
"""
156
- Uninstall the Matplotlib display hook.
159
+ Disconnect from the display hook of the current shell .
157
160
158
161
.. warning::
159
162
You can’t perform that action at this time.
0 commit comments