In this case you can just use
!pip install -q gwpy
In general, you can start the cell with %%capture
%%capture
# the rest of your code
In this case you can just use
!pip install -q gwpy
In general, you can start the cell with %%capture
%%capture
# the rest of your code