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.47-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kiwi_array-0.2.47-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.14.2

File hashes

Hashes for kiwi_array-0.2.47-py3-none-any.whl
Algorithm Hash digest
SHA256 bc31348cf83b8c57f987f92cb03b53dbdccc9fceea9fb34ecdfffb3c8e51db17
MD5 7eaf80b9ed0f2186c89302f21e5cd100
BLAKE2b-256 10af54e3193bc4186b3f809373326dc376d5f9cb60c2433be668e4498bdbad82

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