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

DM-43319: Fix warnings #40

Merged
merged 5 commits into from May 16, 2024
Merged

DM-43319: Fix warnings #40

merged 5 commits into from May 16, 2024

Conversation

mfisherlevine
Copy link
Contributor

No description provided.

# to avoid getting the next Warning:
# UserWarning: FigureCanvasAgg is non-interactive, and thus cannot be shown
# plt.show()
plt.show = custom_show
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wonder if the right solution isn't just to remove the calls to plt.show() to be honest, I doubt that's ever actually used interactively.

Choose a reason for hiding this comment

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

So we should remove the show inside the code? The show() is not part from the test but from the function in the library. I guess you mean returning the matplotlib Plot and then the uplayer call the show() from it, (but that is a big change)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As I put on the other PR, yes, I think that's fine to remove, nobody will be using this interactively.

@mfisherlevine mfisherlevine merged commit 65ed0d9 into main May 16, 2024
4 checks passed
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.

None yet

2 participants