A single layer of cells that line the ventricles of the brain and the central canal of the spinal cord.