Skip to content

Relax matplotlib dependency for Google Colab #377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 31, 2022
Merged

Conversation

bemoody
Copy link
Collaborator

@bemoody bemoody commented May 26, 2022

Issue #374: when you create a notebook in Google Colab (https://colab.research.google.com/), it comes pre-configured with a bunch of pip packages by default. Some of those pre-installed packages will conflict with what you get if you try to run pip install --upgrade matplotlib.

Fortunately, the pre-installed environment already includes matplotlib, just not the latest version.

AFAIK, there should not be any problem using wfdb with matplotlib 3.2.2, so we can relax this requirement to make it easier for people to use the package with Colab.

Remember, when you run pip install wfdb in a fresh environment, it will always give you the latest versions that satisfy wfdb's dependencies. So most people running pip install wfdb will still get matplotlib 3.5.2.

As of 2022-05-26, a certain popular cloud computing service comes with
matplotlib 3.2.2 preinstalled, along with other packages that will
cause a conflict if you try to install the latest version of
matplotlib (3.5.2).

I'm not aware of any incompatibilities with this version, so relax
wfdb's requirement in order to make installation smoother.
Copy link
Member

@tompollard tompollard left a comment

Choose a reason for hiding this comment

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

Thanks Benjamin, this was the fix I had in mind too.

@tompollard tompollard merged commit 327501b into master May 31, 2022
@tompollard tompollard deleted the old-matplotlib branch May 31, 2022 19:30
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.

2 participants