pynajax
Welcome to pynajax, a GPU accelerated backend for pynapple built on top on jax. It offers a fast acceleration for the core pynapple functions using GPU.
Warning ⚠️ This package is not meant to be used on its own. It should only be used through the pynapple API.
Installation
Run the following pip command in your virtual environment.
For macOS/Linux users:
pip install pynajax
For Windows users:
python -m pip install pynajax
Alternatively, you can install pynapple and pynajax together.
pip install pynapple[jax]
Basic usage
To use pynajax, you need to change the pynapple backend using nap.nap_config.set_backend. See the example below :
import pynapple as nap
import numpy as np
nap.nap_config.set_backend("jax")
tsd = nap.Tsd(t=np.arange(100), d=np.random.randn(100))
# This will run on GPU or CPU depending on the jax installation
tsd.convolve(np.ones(11))
Benchmark
This benchmark for the convolve function was run on a GPU.
See the documentation for others benchmarks.
Metadata
Release files for pynajax 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pynajax-0.2.1.tar.gz | 67.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pynajax-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 84.9 kB
Release files / pynajax-0.2.1.tar.gz
| Download URL | pynajax-0.2.1.tar.gz |
|---|---|
| Size | 67.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4cf2e2eaad92b6a399c0b7dadac454f3d70660feb75cdefaed13ca180a24f9ad
|
|
BLAKE2b-256 checksum How to use checksums |
c445d9e31a3677a148514ae7196e20481cb5d5b7ad78104416d738084aadf596
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 4, 2025.
Transparency logRelease files / pynajax-0.2.1-py3-none-any.whl
| Download URL | pynajax-0.2.1-py3-none-any.whl |
|---|---|
| Size | 17.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8c716cbf7633f9060b1e5cdba23a83ff47fcc5eaa2e1935cf02986acaf117e22
|
|
BLAKE2b-256 checksum How to use checksums |
5441a5dfd6b65610b4f6f674ce3ee3e9204958ba1e604bac9d438414473af02b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 4, 2025.
Transparency log