Skip to main content

A package for displaying images in a web browser

Project description

gawp

A lightweight Python package that enables interactive, 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.coins()

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 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.1.21.1.tar.gz (245.6 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.1.21.1-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for gawp-2025.1.21.1.tar.gz
Algorithm Hash digest
SHA256 7c5d94788fcfaa675ee68656c91ebab61a3257c34bf510f1c45e878fb9486bde
MD5 174c2d7809e25bbd65b75d4c982046b9
BLAKE2b-256 ccf3726cb54702d2275c70f6f5f895e34ec1c4160be97b0fe0e89655d0fdb55f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gawp-2025.1.21.1-py3-none-any.whl
  • Upload date:
  • Size: 8.0 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.1.21.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f94554070be53427713c822847798280fb6f1db903bd04cf60492b3b1ff4853b
MD5 4140befb525f81dcee763e24738ee021
BLAKE2b-256 40da1e21c68212bfde049d130d5d39674ab9de494e76d216c766eaf16940e07d

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