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

update image processing example notebok imports and function call #3896

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

RRosio
Copy link
Contributor

@RRosio RRosio commented Mar 28, 2024

I was running into the error:

AttributeError: module 'matplotlib' has no attribute 'image'

and I found two workarounds, using import matplotlib.pyplot as plt to use the pyplot submodule's imsave() or to import the image submodule with import matplotlib.image as mpimg to use its imsave() function. After some brief research I could not discern any major differences between the two functions so I have gone with the pyplot submodule's function.

Copy link

Binder 👈 Launch a binder notebook on branch RRosio/ipywidgets/nb-image-proc

Copy link
Member

@martinRenou martinRenou left a comment

Choose a reason for hiding this comment

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

Thanks!

@martinRenou martinRenou merged commit cd81783 into jupyter-widgets:main Aug 22, 2024
2 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.

2 participants