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:
- Clone the repository
- Create a new branch for your feature
- Add your changes and tests
- 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:
- Check the GitHub Issues
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c5d94788fcfaa675ee68656c91ebab61a3257c34bf510f1c45e878fb9486bde
|
|
| MD5 |
174c2d7809e25bbd65b75d4c982046b9
|
|
| BLAKE2b-256 |
ccf3726cb54702d2275c70f6f5f895e34ec1c4160be97b0fe0e89655d0fdb55f
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f94554070be53427713c822847798280fb6f1db903bd04cf60492b3b1ff4853b
|
|
| MD5 |
4140befb525f81dcee763e24738ee021
|
|
| BLAKE2b-256 |
40da1e21c68212bfde049d130d5d39674ab9de494e76d216c766eaf16940e07d
|