Hydrogel for cell housing in the brain and in the spinal cord