Better fix for viewer when mpl is installed but not qt