Skip to content

anytrellis 0.1.0

Choose a tag to compare

@github-actions github-actions released this 07 Nov 10:28
· 45 commits to main since this release

The first release.

Added

  • Trellis: one panel per level of the facet columns: a wrap (wrap=, cols=) or a
    grid (row=, col=) that keeps empty cells, with shared, per-row, per-column or free
    scales (share_x=, share_y=), linear or log (x_scale=, y_scale=).
  • Marks: line, points, bars (stacked or dodged), area, band, rect, text,
    rule, and summaries computed per panel in Python: hist, box, density and smooth
    (loess or linear, with a confidence band).
  • Data from Polars, pandas, PyArrow or DuckDB (through narwhals), or a dict of arrays;
    numbers, times and categories, with category colours and legends.
  • Drawing with WebGPU, WebGL2 or Canvas 2D, whichever the browser has; the data goes to the
    browser once, as binary buffers, so millions of marks stay interactive.
  • Zooming and panning (scroll, drag, one axis, box zoom), panels that share a scale
    zooming together, fit_y to fit y to the data in view, undo and reset; one panel at a
    time (open, close) and full screen.
  • Selecting: a brush (s) in every panel or, with link=, in one panel and followed by
    key; select(), selection and selected() from Python. Clicking legend entries
    selects their colours.
  • Linked plots: link(a, b, ..., on=) shares one selection between plots, histograms
    filling to their selected share (crossfiltering).
  • Tooltips with Python's values; save_html writes a page that opens without Python.
  • Works in JupyterLab and marimo, and other anywidget hosts (Jupyter Notebook, VS Code).
  • anytrellis.datasets.load: six small example datasets, with their sources and licences
    in datasets/SOURCES.md; example notebooks for Jupyter and marimo.