jupyter-widgets / ipywidgets

Interactive Widgets for the Jupyter Notebook
https://ipywidgets.readthedocs.io
BSD 3-Clause "New" or "Revised" License
3.1k stars 946 forks source link

update image processing example notebok imports and function call #3896

Open RRosio opened 3 months ago

RRosio commented 3 months ago

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.

github-actions[bot] commented 3 months ago

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