[go: up one dir, main page]

Skip to content
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

refactor matplolib import check #4524

Open
Remi-Gau opened this issue Sep 4, 2024 · 0 comments · May be fixed by #4527
Open

refactor matplolib import check #4524

Remi-Gau opened this issue Sep 4, 2024 · 0 comments · May be fixed by #4527
Labels
Code quality This issue tackles code quality (code refactoring, PEP8...).

Comments

@Remi-Gau
Copy link
Collaborator
Remi-Gau commented Sep 4, 2024

introducing this function: we have quite a few matplolib import check peppered in the code base: this could help refactor them

def is_matplotlib_installed():
    """Check if matplotlib is installed."""
    try:
        import matplotlib  # noqa: F401
    except ImportError:
        return False
    else:
        return True

Originally posted by @Remi-Gau in #4522 (comment)

@Remi-Gau Remi-Gau linked a pull request Sep 4, 2024 that will close this issue
@Remi-Gau Remi-Gau added the Code quality This issue tackles code quality (code refactoring, PEP8...). label Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code quality This issue tackles code quality (code refactoring, PEP8...).
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant