Skip to main content

A Python package for creating shareable, interactive visualizations in the browser

Project description

figpack

A Python package for creating shareable, interactive visualizations in the browser.

Overview

figpack enables you to create interactive data visualizations that can be displayed in a web browser and optionally shared online. The package focuses on timeseries data visualization with support for complex, nested layouts.

Key Features

  • Interactive timeseries graphs with line series, markers, and interval plots
  • Flexible layout system with boxes, splitters, and tab layouts
  • Web-based rendering that works in any modern browser
  • Shareable visualizations that can be uploaded and shared via URLs
  • Zarr-based data storage for efficient handling of large datasets

Installation

Install figpack using pip:

pip install figpack

Quick Start

import numpy as np
import figpack.views as vv

# Create a timeseries graph
graph = vv.TimeseriesGraph(y_label="Signal")

# Add some data
t = np.linspace(0, 10, 1000)
y = np.sin(2 * np.pi * t)
graph.add_line_series(name="sine wave", t=t, y=y, color="blue")

# Display the visualization
graph.show(open_in_browser=True, title="Quick Start Example")

Available Views

figpack provides a comprehensive set of view components for creating interactive visualizations:

Core Views

Layout Views

External Figure Support

Spike Sorting Views

Examples

See the examples/ directory for working examples of each view type.

Usage Modes

Local-only Mode

view.show(open_in_browser=True, title="Local Visualization")

Sharing Online

Set the FIGPACK_API_KEY environment variable and use:

view.show(upload=True, open_in_browser=True, title="Shared Visualization")

Development Mode

Set _dev=True in the call to show() to enable development mode, which allows for live updates and development of figpack-gui.

Command Line Interface

figpack includes a command-line interface for working with figures:

Download a Figure

figpack download <figure-url> <dest.tar.gz>

Download a figure from any figpack URL and save it as a local archive.

View a Figure Archive

figpack view <figure.tar.gz>

Extract and view a figure archive in your browser. The server will run locally until you press Enter.

Use --port <number> to specify a custom port.

License

Apache-2.0

Contributing

Visit the GitHub repository for issues, contributions, and the latest updates.

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

figpack-0.2.3.tar.gz (576.1 kB view details)

Uploaded Source

Built Distribution

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

figpack-0.2.3-py3-none-any.whl (575.0 kB view details)

Uploaded Python 3

File details

Details for the file figpack-0.2.3.tar.gz.

File metadata

  • Download URL: figpack-0.2.3.tar.gz
  • Upload date:
  • Size: 576.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for figpack-0.2.3.tar.gz
Algorithm Hash digest
SHA256 e6d3b305a9c26dc19ffd261aa54d36383b93d5bbd08aa22d7c47ac327e16c1a2
MD5 dd1cdcbd6fffee22b3d0f59a2bdcc212
BLAKE2b-256 efce44e558b8f8f774707fe6e557ed2f8cc20b7541bffdfc16c62e4f27695946

See more details on using hashes here.

Provenance

The following attestation bundles were made for figpack-0.2.3.tar.gz:

Publisher: deploy-to-pypi.yml on magland/figpack

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file figpack-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: figpack-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 575.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for figpack-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a4c0db3e2dd64e5c1f64ac06ff4eebd2eae604e2d5fd8881c89d409e8be81ab7
MD5 c14a97726bca4238810a143cfc65abc8
BLAKE2b-256 6a5074e95aea28d3064409b436ea7c56c8f1a8c2864bfef4f43f638e365a0177

See more details on using hashes here.

Provenance

The following attestation bundles were made for figpack-0.2.3-py3-none-any.whl:

Publisher: deploy-to-pypi.yml on magland/figpack

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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