The existing test to see if `FigureWidget` is installed or not is somewhat convoluted and offends `ruff` - we should rewrite it.