In case there is no need for interaction for a specific matplotlib figure in a Jupyter notebook, how to prevent that programmatically?
Manually that can be done by pressing Ctrl-w or clicking the "Stop Interaction" button. I am looking for the API access to the same operation.
Reasons:
- Interactive figures use resources and warnings displayed for too many such figures.
- Closing them manually is not convenient each time the cells are executed
- Without interactive frame figures are more compact.