Skip to content

๐Ÿ”ข An interactive D3.js-powered web app to visualize, manipulate, and understand multi-dimensional NumPy arrays.

Notifications You must be signed in to change notification settings

kimtth/numpy-multi-dims-visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ”ข NumPy Multi-Dimensional Array Visualizer

โœจ Interactive web application to visualize and understand NumPy array manipulations using D3.js.

๐ŸŽฏ Features

  • ๐ŸŽจ Visual representation of 1D, 2D, 3D, 4D, 5D, and 6D arrays
  • โšก Quick action buttons for common operations:
    • ๐Ÿ”„ Reshape, Transpose, Flatten
    • ๐Ÿ“ Expand/Squeeze dimensions
    • ๐Ÿ”€ Swap axes, Slice arrays
    • ๐Ÿ“Š Aggregate operations (sum, mean)
  • ๐Ÿ‘€ Before/After visualization to understand transformations
  • ๐ŸŒˆ Color-coded cells using D3.js color scales
  • โฑ๏ธ Real-time feedback on array shape and operations
  • ๐ŸŽฎ Interactive dimension selectors for 5D and 6D arrays

screen

๐Ÿš€ Setup

  1. ๐Ÿ“ฆ Install Python dependencies:
uv sync
  1. ๐Ÿ–ฅ๏ธ Start the Flask backend:
python server.py
  1. ๐ŸŒ Open index.html in a web browser (or use a local server)

๐Ÿ’ก Usage

  1. ๐ŸŽฒ Generate Arrays: Enter a shape (e.g., "3,4" or "2,3,4,5") and choose a fill method
  2. ๐ŸŽฏ Quick Actions: Click any button to see the transformation
  3. ๐Ÿ‘๏ธ View Results: See input and output side-by-side with operation details
  4. ๐Ÿ–ฑ๏ธ Interactive Controls: Use dimension selectors for 5D/6D arrays to explore different slices

๐Ÿ“š Dimension Support

  • โœ… 1D-5D: Full visualization with interactive controls
  • โš ๏ธ 6D: Informational view with recommendations to reduce dimensions

About

๐Ÿ”ข An interactive D3.js-powered web app to visualize, manipulate, and understand multi-dimensional NumPy arrays.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published