Skip to content

Conversation

@duboism
Copy link
Contributor

@duboism duboism commented Nov 4, 2025

This PR fixes #7 by changing the code to install packages.

The main idea is to install gwpy 3.0.13. This version is compatible with recent matlplotlib versions used on Colab. Tests show that it's not needed to explicitly install matplotlib and astropy (they are installed as pre-requisites of gwpy).

To smoothen usage inside and outside Colab:

  • We import matplotlib after ensuring the presence of gwpy.
  • We remove some matplotlib options that are no longer needed.

This works in a minimal virtual/conda env and on Colab.

Closes #7.

Also remove useless matplotlib options
@duboism duboism self-assigned this Nov 4, 2025
Copy link
Contributor

@martinberoiz martinberoiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried it on Collab and even though the error message appears, the whole notebook runs just fine.

@duboism
Copy link
Contributor Author

duboism commented Nov 5, 2025

Thank you. Maybe we can mention the error message in the notebook (precising that it should work).

@duboism
Copy link
Contributor Author

duboism commented Nov 5, 2025

Thank you. Maybe we can mention the error message in the notebook (precising that it should work).

I added a basic message in 31d4dbe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Installation problem in colab

3 participants