Registry / analytics / npx
library0.1.8pypypiunverified

npx provides some useful extensions for NumPy, such as broadcasting functions, softmax, and block diagonals. Current version 0.1.8 follows a stable release schedule. Requires Python 3.10+.

pip install npx
INSTALL
IMPORT
SIG · NPX
N
npx
analyticspythonv0.1.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

softmax
✓ from npx import softmax
✗ from npx import softmax

Compute softmax and block diagonal using npx.

import numpy as np from npx import softmax, block_diag # Softmax along axis arr = np.array([[1.0, 2.0], [3.0, 4.0]]) print(softmax(arr, axis=1)) # Block diagonal matrix matrices = [np.array([[1, 2], [3, 4]]), np.array([[5]])] print(block_diag(matrices))
Debug
Known issues
deprecatedsoftmax from npx is deprecated; use scipy.special.softmax or custom implementation.
fix
Replace with scipy.special.softmax or a manual implementation.
affects: >=0.1.0
gotchablock_diag requires a list of arrays; passing mismatched shapes raises ValueError.
fix
Ensure all input arrays have compatible dimensions for concatenation.
affects: >=0.1.0
Upgrade
Version history
0.1.8latest on PyPI · released Apr 30, 2026
Audit
Dependencies
numpyrequiredCore dependency for array operations
Agent activity
35 hits · last 30 days
node
28
Amazon
1
Anthropic
1
OpenAI (training)
1
Resources
npx — pip install npx · libregistry