Skip to content
/ sora Public

A simple library to display images in Jupyter notebooks

License

Notifications You must be signed in to change notification settings

mznmel/sora

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sora (صورة)

Sora means image/picture in Arabic. It is a simple library to display and embed images in Jupyter notebooks. Check out the example.ipynb notebook to see the results.

Why?

Because displaying images in Jupyter should be easy, and using matplotlib for this task is not cool.

Installation

pip install sora

Usage

from sora import sora

# Display a single image from a file:
sora('./test.jpg')

# Display all the images in a directory:
sora('./images/')


import tensorflow as tf
(x, _), (_, _) = tf.keras.datasets.cifar10.load_data()

# Display an image from a numpy array (ndarray):
sora(x[0])

# Display a collection of images from a numpy array (ndarray)
sora(x[0:10])

# You can also customize  the grid
sora(x[0:100], cell_width=42, cell_height=42, items_per_row=10)

About

A simple library to display images in Jupyter notebooks

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published