PIL.Image
Demo¶PIL is the Python Image Library, and has excellent documentation.
This is a simple demonstration of rendering PIL images in a jupyterlite
notebook. Most
of PIL should work as designed.
jupyterlite
comes with PIL, so you only need import what you need from it.
from PIL import Image
image = Image.new("RGB", (100, 100))
image
image.save("box.png")
Currently only works with images written by jupyterlite
.
box_image = Image.open("box.png")
box_image