Hi everyone,
We are currently converting all distance functions in spatial.distance to the array API and at the same time add batch support (see ENH: spatial.distance: array API standard support tracker · Issue #25734 · scipy/scipy · GitHub). Most functions have not had an axis argument so far, so this does not pose a problem. However, jensenshannon already accepts 2D inputs, and uses axis=0 as default. This makes things inconsistent across distance functions, as jensenshannon will be the only one that uses 0 as the default. We thus want to deprecate the default of 0 in scipy 2.0 and make a breaking change in 2.2 to switch it to -1 (see ENH: spatial.distance.jensenshannon: add batching and xp support by amacati · Pull Request #26614 · scipy/scipy · GitHub ).
Let me know if anyone objects to this. Otherwise we would move forward with our plan.
Cheers,
Martin