Matrix Visualiser

Paste Python / NumPy code and replay it line by line

Loading Python…
–
The current line, with values filled in, appears here. Hover a value to see which cell it came from.
read by this line written by this line written earlier i→index that picked the row / column

Nothing to show yet

Paste code on the left (or load an example) and press Visualise. Every matrix, vector and loop variable will appear here, and each step shows which cells the current line reads and writes.

Output