A reusable interactive image swiper component for Jupyter Notebooks.
Project description
ipyswiper
A reusable interactive image gallery component for Jupyter Notebooks.
This component provides an interactive image gallery with:
- Main image display with optional fade effects
- Scrollable thumbnail strip
- Keyboard navigation support
- Standalone HTML export
Notebook example
https://nbviewer.org/github/leejjoon/ipyswiper/blob/main/notebooks/jupyter_gallery_demo.ipynb
Install
Once you download/fork repository
pip install .
Command-Line Usage
ipyswiper can be run as a command-line tool to generate a standalone HTML gallery from a JSON file.
Basic Usage
To generate the gallery and print the HTML to standard output:
python -m ipyswiper examples/demo.json
Saving to a File
To save the gallery to an HTML file, use the -o or --output option:
python -m ipyswiper examples/demo.json -o my_gallery.html
Using Custom JSON Keys
If your JSON file uses different keys for the image label and path, you can specify them with --label-key and --image-key:
python -m ipyswiper examples/custom_keys.json --label-key caption --image-key url
Other Options
The command-line tool supports various options to customize the gallery's appearance and behavior. To see all available options, run:
python -m ipyswiper --help
For Administrators
How to Publish to PyPI
To publish this package to PyPI, you will need to have flit installed.
-
Install flit
pip install flit
-
Build the package
flit build -
Publish to PyPI
flit publishYou will be prompted for your PyPI username and password.
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 ipyswiper-0.1.2.tar.gz.
File metadata
- Download URL: ipyswiper-0.1.2.tar.gz
- Upload date:
- Size: 24.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84b0e20102a809701c5699aecf00b801172948ae5a9a7293155de0eb8548a8bf
|
|
| MD5 |
330c1edfa6adbf54e124f96b8c6984e5
|
|
| BLAKE2b-256 |
a2395275a58f437d4239e369f415594ddfeba4aa2621269cd916d955a6f538cf
|
File details
Details for the file ipyswiper-0.1.2-py2.py3-none-any.whl.
File metadata
- Download URL: ipyswiper-0.1.2-py2.py3-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6cd506a20be3e86cf8c60c9023a993aa671111e29786191e369197528c906f3
|
|
| MD5 |
ce98127f9a95626d995a9fc97968dcb5
|
|
| BLAKE2b-256 |
fe84d587a03828300e03bcb51f27c70e82960915eb7e6f1fe7beabcc871027cd
|