The error is coming from [this line](https://github.com/pyannote/pyannote-core/blob/5.0.0/pyannote/core/notebook.py#L129) in v5.0.0. I see this was already fixed (replacing `matplotlib.cm` with `matplotlib.pyplot`) but it was never released.