Two nanofluidic devices can reproduce Hebbian learning using ions in water as charge carriers, similar to how neurons work.