Skip to main content

kiwi-array

kiwi-array is the Python loader package for Kiwi. It contains the kiwi_array.bridge ctypes wrapper, IPython magics, runtime backend discovery, and a small kiwi CLI launcher that execs the real native CLI from an installed backend payload.

By default, installing kiwi-array also installs kiwi-array-host, the conservative host backend. Accelerated backends are explicit extras: kiwi-array[cpu], kiwi-array[metal], or kiwi-array[cuda12].

In IPython-compatible hosted notebooks, load the extension and use either the descriptive or short magic:

%load_ext kiwi_array
%%k
x:1 2 3
+/x

%%kiwi is registered as the explicit alias for %%k.

Use the lightweight diagnostics when sharing hosted notebook setup cells:

%kinfo
%ksmoke

On a GPU runtime, %ksmoke --gpu also pushes a small MLX-backed vector through the native bridge and evaluates a gradient over it.

Runtime payload packages such as kiwi-array-host, kiwi-array-metal, and kiwi-array-cuda12 register themselves through the kiwi_array.runtimes entry point group. Set KIWI_RUNTIME=host, KIWI_RUNTIME=cpu, KIWI_RUNTIME=metal, KIWI_RUNTIME=cuda12, or leave KIWI_RUNTIME=auto to control runtime selection.

Vega-Lite outputs use the notebook's default light rendering by default. Set KIWI_VEGALITE_THEME=dark before rendering if you want the HTML fallback to use Vega-Embed's dark theme.

Metadata

Release files for kiwi-array 0.4.1

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

Built distribution (wheel)

Table of built distributions (wheels) for kiwi-array 0.4.1
File Interpreter ABI Platform
kiwi_array-0.4.1-py3-none-any.whl Python 3 none any Details

Release files / kiwi_array-0.4.1-py3-none-any.whl

Download URL kiwi_array-0.4.1-py3-none-any.whl
Size 12.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0e4d9cea2d7625424193126a0ee4b9a136edc08ae19977ed96ad1cbb1ae087f7
BLAKE2b-256 checksum
How to use checksums
00ddd59c84a71755cabafb56a828da095b97fffd122e8afd45465763a0798b50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.2

Security for kiwi-array 0.4.1

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.

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