Update import of interactive_bk for matplotlib 3.9
This PR updates detection of interactive plotting backends to use the new API from matplotlib 3.9 (if available).
This PR updates detection of interactive plotting backends to use the new API from matplotlib 3.9 (if available).