jax-jumpy
Common backend for Jax or Numpy.
What it is and what it does
Jax-jumpy is a compatibility layer that lets you write code once and run it on either NumPy or JAX depending on what is installed and how the code is called. The core idea is to enable framework-agnostic libraries—particularly reinforcement learning environments like Gymnasium and PettingZoo—to work seamlessly with both standard NumPy arrays and JAX-accelerated versions without code duplication.
When you call a jax-jumpy function, it checks whether JAX is available and whether the inputs are JAX arrays or the function is JIT-compiled; if so, it runs the JAX version for acceleration. Otherwise it falls back to NumPy. This design lets you debug with plain NumPy (which is easier to inspect and step through) and deploy with JAX (for hardware acceleration) using the same codebase. The package currently supports a subset of NumPy and JAX functions, with some advanced features like `vmap` and `scan` available only when JAX is installed.
Use it for:
- Write RL environment wrappers that work with both NumPy and JAX backends without duplicating logic.
- Debug numerical code in plain NumPy, then run it accelerated on GPU/TPU via JAX without code changes.
- Build libraries that optionally use JAX acceleration when available, falling back gracefully to NumPy.
- Implement array operations that automatically dispatch to the fastest available backend at runtime.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Jax-jumpy provides a unified interface that runs NumPy code as-is when JAX is unavailable, and automatically switches to JAX's accelerated backend when JAX is installed and conditions are met (JIT compilation or JAX inputs).
Yes, if you are building libraries or environments that need to support both NumPy and JAX users without code duplication. The low install friction, active maintenance, permissive license, and zero known vulnerabilities make it a safe choice. Not necessary if you are already committed to a single backend or do not need optional acceleration.
Install
jax-jumpy on PyPI
pip
pip install jax-jumpyuv
uv add jax-jumpypoetry
poetry add jax-jumpyInstalling jax-jumpy
Before you install
Low friction install with only numpy as a required dependency; jax is optional. Repository is actively maintained with recent commits and no archived status, though the latest release was over a year ago.
License in practice
Apache 2.0 permissive license allows commercial and private use with minimal restrictions; you must include a copy of the license and document any modifications you make.
Quickstart
pip install jax-jumpy
import jax_jumpy as jp
import numpy as np
arr = jp.array([1, 2, 3])
result = jp.sum(arr)
JAX is optional; without it, jax-jumpy falls back to NumPy. To use JAX acceleration, install with `pip install jax-jumpy[jax]`.
Verify before relying
- Coverage of NumPy and JAX function implementations—documentation does not specify which functions are currently supported versus missing.
Package facts
| License | Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for… (full text in the JSON record) (permissive) |
| Python support | supports the current Python release (>=3.7) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — numpy |
| Maintenance | actively maintained — 1,246 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 96,724/month — #13,197 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: jax_jumpy-1.0.0-py3-none-any.whl
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
jaxJAX is a Python library for automatic…
permissive · top 1,000 on PyPI
jaxlibjaxlib is the compiled XLA backend that enables…
permissive · top 5,000 on PyPI
jax-cuda12-pjrtProvides NVIDIA GPU acceleration for JAX…
permissive · top 15,000 on PyPI
jax-cuda12-pluginEnables JAX to run numerical computations and…
permissive · top 15,000 on PyPI
jax-cuda13-pjrtProvides NVIDIA GPU acceleration for JAX…
permissive · top 15,000 on PyPI
jax-cuda13-pluginProvides NVIDIA GPU support for JAX by enabling…
permissive · top 15,000 on PyPI
jaxellipProvides JAX-compatible implementations of…
permissive · top 15,000 on PyPI
chexChex provides utilities for writing reliable…
permissive · top 5,000 on PyPI
torchaxtorchax is a PyTorch backend that runs PyTorch…
permissive · top 15,000 on PyPI
numpyroNumPyro is a probabilistic programming library…
permissive · top 15,000 on PyPI