Failure of standard matplotlib import command

This code fails:
First import needed modules, then specify interactive backend allowing use of matplotlib within a Jupyter notebook: