Skip to main content

A simple and unified library to display images in Jupyter notebooks

Project description

sora (صورة)

Sora means image/picture in Arabic. It is a simple library to display and embed images in Jupyter notebooks. You can use it to:

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sora-0.1.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

sora-0.1.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file sora-0.1.1.tar.gz.

File metadata

  • Download URL: sora-0.1.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for sora-0.1.1.tar.gz
Algorithm Hash digest
SHA256 57e9267ec78978499de0cbf487a5e8cbeb01fb9ce5709f0fabb46d49e2d2ec34
MD5 debea76983eeb57aa8b930c9eb29b6d1
BLAKE2b-256 b42e2418b8d176d130018a7feb388f33f86e1ea2ce7034d7fd978fed3b6bb05d

See more details on using hashes here.

File details

Details for the file sora-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: sora-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for sora-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8ccfab783de8a4cfcd28717032bbbb673266a48c6dfb65555c477f00b391d617
MD5 4e53e7df2edbdd37b4b44216a77d0d71
BLAKE2b-256 dcb58a0cd6a387141b4fbbdb566e08c6b5f785e15244e6096275fd948313521d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page