Figpack information and planning session

Jeremy Magland

Center for Computational Mathematics, Flatiron Institute

5 November 2026

Why Figpack?

Static figures do not carry nearly as much information as interactive web applications backed by large datasets.

Idea: The web application is the figure.

Static plot of four channels of a recording
A static figure
An interactive web application (click, drag, scroll, or use the toolbar)

Figpack figure example

Create from Python (or MATLAB)

Synchronized views

Views in a figure share state:

  • Current time and visible time range (time series, spectrograms, videos)
  • Selected units (spike sorting views)

Data: two-photon calcium imaging in mouse primary visual cortex, Allen Brain Observatory Visual Coding (Allen Institute), streamed from the DANDI Archive (DANDI:000728)

Exporting as SVG

Export as SVG button

  • Export the figure as SVG (vector graphics) for inclusion in publication or presentation
  • UI controls and other features are not shown
  • Layout is redrawn based on user-selected dimensions for the output
  • Not all views support it (ask Jeremy to expand support)

A figure is a self-contained directory

A core principle of Figpack is that figures are always self-contained directories.

  • Portable
  • Shareable
  • Long-term archivable
  • No external dependencies
595aafbd9ac7a0b3e580d1ad/ ├── index.html3.6 KBentry point ├── assets/ │ ├── index-WMFzRCdR.js2.3 MBJavaScript │ ├── index-oS-16pKZ.css6.2 KB │ └── neurosift-logo-CLsuwLMO.png9.3 KB ├── data.zarr/ │ ├── .zmetadata4.0 KB │ └── _consolidated_0.dat14.1 MBdata └── extension_manifest.json22 B

7 files, 16.4 MB

Efficient data layout - consolidated Zarr

Although not a strict requirement, figure data is generally laid out using a variant of the cloud-friendly Zarr format.

  • N-dimensional arrays stored in chunks
  • Chunks are compressed
  • Supports lazy loading
  • Multi-scale storage (zoom out without loading entire dataset)
  • Consolidated chunks so total number of files is small (unique to Figpack)

Where does the figure live, and for how long?

By default figures expire in 24 hours. Rarely deleted though. The purpose is so there is no expectation that the figure will be available long term (different from figurl).

Unless the figure is renewed or pinned.

Multi-tier:

  • Ephemeral (no API key required) - cannot be renewed
  • Default - expires in 24 hours
  • Renewed - expires in an additional 7 days
  • Pinned - does not expire, but won't be around forever
  • Pinned in your own bucket - will survive as long as you maintain the bucket
  • Hosted on GitHub Pages
  • Archived on a service like Zenodo (long term - can accompany publication)

Managing a figure

Open in a new tab

Integrations

SpikeInterface logo

SpikeInterface

integrated

figpack_spike_sorting

DataJoint logo

DataJoint

integrated

dj-figpack-codecs

Spyglass logo

Spyglass

future

right now it uses figurl

What if the view I need isn't available?

If you can imagine it, it's probably possible!

With coding agents... implementation is usually straightforward.

Your options:

  • Request the feature/view on the figpack GitHub repo.
  • Ask Jeremy directly via email/Slack
  • Implement it yourself. (Point a coding agent to the codebase)
The view you need Request it GitHub issue Ask Jeremy email / Slack Implement it you + a coding agent New view

New experimental feature - REMIX

Suppose you created a large figure, and you want to adjust colors, layout, labels, etc, or even add new views of the underlying data.

Select the "REMIX" button on the figure management page.

Chat with AI to make your one-off changes, specific to that figure.

Nice for preparing a one-off figure for a publication or presentation.

Remix flow

Figure Create a copy optional; required if someone else owns it your own figure Remix using AI chat Save remix modifies the figure Export patch apply when making future figures Apply patch from a previously exported patch

New Feature - Annotations

vv.TimeseriesGraph(..., allow_annotation=True) · Open in a new tab

Possible future directions

Adding new view types

need input from users

Building more advanced annotation/curation capabilities

building into workflow

Make it easier to archive figures

host on GitHub Pages or Zenodo

What else? ...