I recently wrote a numpy 3D-array viewer with threejs and #anywidget. If you want to tinker with it, here's the standalone app: https://py.cafe/kolibril13/threejs-array-viewer It’s powered by pycafe and runs entirely in your local browser thanks to Pyodide.
PyCafe - Solara - Interactive 3D Voxel Visualization

PyCafe: get your daily fix of Python!