Skip to main content

Python loader, IPython magics, backend discovery, and CLI launcher for Kiwi.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

kiwi_array-0.2.50-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file kiwi_array-0.2.50-py3-none-any.whl.

File metadata

  • Download URL: kiwi_array-0.2.50-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for kiwi_array-0.2.50-py3-none-any.whl
Algorithm Hash digest
SHA256 57e65143f506c2eec5f331f8d59fc01353a9310e86f466bb12d9f08cf3d22ce4
MD5 ecb63d31e373351334208d1c4c0a123c
BLAKE2b-256 6d7696aef1aa577d59986891c3e43cacbad302b85459e0b13cb150829e066af1

See more details on using hashes here.

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