Skip to main content

A package for displaying images in a web browser

Project description

gawp

A lightweight Python package that enables zoomable image viewing directly from Jupyter notebooks using a web-based interface.

Features

  • Open images in a new browser tab from Jupyter notebooks
  • Smooth zoom and pan functionality
  • Support for common image formats (numpy, PIL, matplotlib)

Installation

Install using pip:

pip install gawp

Usage

Basic usage in a Jupyter notebook:

import gawp

# Create an image of numpy type (also works wit PIL images)
image = ski.data.coffee()

gawp.in_web(image)

or use a matplotlib figure:

import gawp
import matplotlib.pyplot as plt
import numpy as np

x = np.arange(10)
y = x*x

fig = plt.figure()
ax = plt.axes()

ax.scatter(x,y)

gawp.in_web(fig)

Development

Contributions to gawp are welcome! To contribute:

  1. Clone the repository
  2. Create a new branch for your feature
  3. Add your changes and tests
  4. Submit a pull request

Requirements

  • Python 3.8+
  • Jupyter Notebook or JupyterLab
  • Pillow
  • Numpy
  • Matplotlib
  • scikit-image
  • webbrowser (standard library)

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

For issues, feature requests, or questions:

  1. Check the GitHub Issues

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

gawp-2025.2.4.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gawp-2025.2.4-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file gawp-2025.2.4.tar.gz.

File metadata

  • Download URL: gawp-2025.2.4.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for gawp-2025.2.4.tar.gz
Algorithm Hash digest
SHA256 91ddd27c9848f3beb111527f23f8993346d132540a55341673eb38624e635b00
MD5 b44bf5f6256170f0b8bdfa61f87f00d2
BLAKE2b-256 6621bd48265af23b5810e61ca5c7ab4fcdfa0168b04fbdc9dc5d26095eed864f

See more details on using hashes here.

File details

Details for the file gawp-2025.2.4-py3-none-any.whl.

File metadata

  • Download URL: gawp-2025.2.4-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for gawp-2025.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 417c19b1c79ab4c5d9241a46b23ef878fab513bf21b277fbfad682ff8527c1d7
MD5 a6ec81fe8cbc2e7556191dce2f229058
BLAKE2b-256 3c10d05b26cd6d963701b9a341e376f390f14a1dc24c32a54ee5e56195abeb7c

See more details on using hashes here.

Supported by

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