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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

RRosio
Copy link

@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

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

1 participant