matplotlib.pyplot.install_repl_displayhook#
- matplotlib.pyplot.install_repl_displayhook()[source]#
Connect to the display hook of the current shell.
The display hook gets called when the read-evaluate-print-loop (REPL) of the shell has finished the execution of a command. We use this callback to be able to automatically update a figure in interactive mode.
This works both with IPython and with vanilla python shells.