Skip to main content

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.

  1. Install flit

    pip install flit
    
  2. Build the package

    flit build
    
  3. Publish to PyPI

    flit publish
    

    You will be prompted for your PyPI username and password.

Metadata

Release files for ipyswiper 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ipyswiper 0.1.2
File Size Uploaded Provenance
ipyswiper-0.1.2.tar.gz 24.2 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ipyswiper 0.1.2
File Interpreter ABI Platform
ipyswiper-0.1.2-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 24.2 MB

Release files / ipyswiper-0.1.2.tar.gz

Download URL ipyswiper-0.1.2.tar.gz
Size 24.2 MB
Tags Source
SHA-256 checksum
How to use checksums
84b0e20102a809701c5699aecf00b801172948ae5a9a7293155de0eb8548a8bf
BLAKE2b-256 checksum
How to use checksums
a2395275a58f437d4239e369f415594ddfeba4aa2621269cd916d955a6f538cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.3

Release files / ipyswiper-0.1.2-py2.py3-none-any.whl

Download URL ipyswiper-0.1.2-py2.py3-none-any.whl
Size 15.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
e6cd506a20be3e86cf8c60c9023a993aa671111e29786191e369197528c906f3
BLAKE2b-256 checksum
How to use checksums
fe84d587a03828300e03bcb51f27c70e82960915eb7e6f1fe7beabcc871027cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.3

Security for ipyswiper 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page