You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running this under Python 3.11.3 as ipyplot.plot_images(images) where images is an array of PIL.Image (actually JpegImageFile), I get the following warning:
.../lib/python3.11/site-packages/ipyplot/_utils.py:95: FutureWarning: The input object of type 'JpegImageFile' is an array-like implementing one of the corresponding protocols (`__array__`, `__array_interface__` or `__array_struct__`); but not a sequence (or 0-D). In the future, this object will be coerced as if it was first converted using `np.array(obj)`. To retain the old behaviour, you have to either modify the type 'JpegImageFile', or assign to an empty array created with `np.empty(correct_shape, dtype=object)`.
return np.asarray(seq, dtype=type(seq[0]))
Is this already known?
The text was updated successfully, but these errors were encountered:
When running this under Python 3.11.3 as
ipyplot.plot_images(images)
whereimages
is an array ofPIL.Image
(actuallyJpegImageFile
), I get the following warning:Is this already known?
The text was updated successfully, but these errors were encountered: