This notebook accompanies Learned Response Dynamics Reflect Stimulus Timing and Encode Temporal Expectation Violations in Superficial Layers of Mouse V1 (revisions submitted to eLife soon). For the full dataset, modules imported by the notebook, and proper code formatting, please follow this link to my google drive/colab folder.