pillow
in a Jupyter notebook.!pip show pillow
Name: Pillow Version: 9.0.1 Summary: Python Imaging Library (Fork) Home-page: https://python-pillow.org Author: Alex Clark (PIL Fork Author) Author-email: aclark@python-pillow.org License: HPND Location: c:\users\sparisoma viridi\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages Requires: Required-by: matplotlib
Jupyter Notebook and other modules are previously installed using pip (at home).
!pip install pillow
Note: Not tried.
from PIL import Image
fname = "data/python_180x180.png"
img = Image.open(fname)
img.show()
print("File =", fname)
print("Format =", img.format)
print("Mode =", img.mode)
File = data/python_180x180.png Format = PNG Mode = RGBA
It can not show image in a notebook
but the package can be accessed.