Commit 946adf7b authored by goekce's avatar goekce
Browse files


parent 237f4b7e
Pipeline #9924 passed with stage
in 6 minutes and 5 seconds
......@@ -491,6 +491,17 @@ im.point(lambda i: 128 if i>128 else i).show()
im.point(lambda i: min(i, 128)).show()
## Displaying images on a Jupyter notebook
We can display an image by using `display(PIL.Image)` or simply returning that:
import numpy as np
from PIL import Image
img = Image.fromarray(np.zeros((100,100)).astype('uint8'))
# or simply return it
<!-- an image is a 3D array of pixels -->
<!-- converting an image to a 3D array using numpy -->
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment