arrayviz

arrayviz#

Single-purpose ndarray visualizer for Python in vanilla Javascript.

Designed to visualize the contents of arbitrarily-high-dimensional NDArrays quickly and without any dependencies, to allow them to be visualized by default instead of requiring lots of manual effort.

Classes

ArrayvizDigitboxRendering

A rendering of a single digitbox with Arrayviz.

ArrayvizRendering

A rendering of an array with Arrayviz.

ValueColoredTextbox

A rendering of text with a colored background.

Functions

infer_rows_and_columns(axis_sizes[, ...])

Infers an ordered assignment of axis indices or names to rows and columns.

integer_digitbox(value[, label_top, ...])

Returns a "digitbox" rendering of a single integer.

load_arrayvis_javascript()

Loads the contents of arrayvis.js from the Python package.

render_array(array, *[, columns, rows, ...])

Renders an array (positional or named) to a displayable HTML object.

render_array_sharding(array[, rows, columns])

Renders the sharding of an array.

render_sharded_shape(sharding, ...[, rows, ...])

Renders the sharding an array would have, based on its shape.

text_on_color(text, value[, vmax, vmin, ...])

Renders some text on colored background, similar to arrayviz coloring.

Module Attributes

default_sequential_colormap

Default sequential colormap.

default_diverging_colormap

Default diverging colormap.