How can I generate visual stimuli like those used in the Brain Observatory?


You can use the AllenSDK ( to access stimulus templates and/or parameters to recreate these stimuli with your favorite experimental control software.

An example Jupyter notebook demonstrating how to access the Natural Scenes, Natural Movies, and Locally Sparse Noise stimuli used in the Brain Observatory: Visual Coding is available here:

At this time, our stimulus code is not available for sharing, due to the level to which it has been optimized for our custom hardware and data acquisition protocols. We are currently exploring how to best share this code and hope to make this available in the future.