Skip to content

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
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