Can you point me where did you download the notebook from? That bug is from an old version of GWpy. I think updating the GWpy version to the latest one should solve it.
Thanks for your help. I thought I had the latest version installed V3.0.1, but I’ve just upgrade to V3.0.4, and that has resolved the issue. Thanks again!