Two superconductors separated by a thin tunneling barrier exhibit the Josephson effect and can be characterized by a single macroscopic wavefunction that allows charge transport at zero voltage 1 , typically with no phase shift between the superconductors in the lowest energy state. Recently, Josephson junctions with the ground state phase shifts of π proposed by theory three decades ago 2 , have been demonstrated 3-5 . Enclosed in superconducting loops, π-junctions cause spontaneous circulation of persistent currents 2 , making such loops analogous to spin-1/2 systems 6 . Here we use a scanning SQUID (Superconducting QUantum Interference Device) microscope 7 to image spontaneous currents in superconducting networks of temperature-controlled π-junctions based on weakly ferromagnetic barriers 3 . By combining cells with even and odd numbers of πjunctions, we construct non-uniformly frustrated arrays that have previously not been attained. We find an onset of spontaneous supercurrents at the 0-π transition temperature of the junctions T π ~ 3 K. Control over both geometry and interaction strength in these arrays makes them attractive as model systems for studies of the exotic phases of the 2D XY-model 8-9 and for applications in scalable architectures of adiabatic quantum computers 10 .