Contains all data reported in the paper "Visually-guided and context-dependent spatial navigation in the translucent fish Danionella cerebrum" as well as all code for controlling behavioral experiments, data preprocessing, data analysis, and figure generation. Raw behavioral videos are not included in this dataset due to size limitations but can be made available upon request. Any additional information required to reanalyze the data reported in this paper will be made available from the lead contact upon request.