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

Lazy import matplotlib #14

Merged
merged 2 commits into from
Feb 1, 2024
Merged

Lazy import matplotlib #14

merged 2 commits into from
Feb 1, 2024

Conversation

AngelFP
Copy link
Owner

@AngelFP AngelFP commented Feb 1, 2024

Import matplotlib only inside the relevant functions. This improves startup performance and avoids an ImportError when importing from the plotting module if matplotlib is not installed (this was happening in Wake-T).

@AngelFP AngelFP merged commit b25d3e2 into master Feb 1, 2024
2 checks passed
@AngelFP AngelFP deleted the feature/lazy_matplotlib branch February 1, 2024 16:43
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.

1 participant