(a) Schematic illustrating simultaneous two-photon imaging and electrophysiology in virally infected L2/3 neurons in vivo. (b) Examples of single-trial responses (gray line) and average across 10 trials (black line) from three neurons to evoked APs at 50 Hz under anesthesia. (c) GCaMP3 showed linear ΔF/F in response to evoked APs (n = 9 cells, thin gray lines; average of 10 trials per neuron, thick red line). (d) Example trace of simultaneous recording of fluorescence changes (black) and spiking activity (red, number of APs per 0.5 sec bin) during head-fixed behavior. APs were recorded in loose seal cell-attached mode. (e) Fluorescence change in response to action potentials, binned over 0.5 s intervals. 6 cells from 3 animals were indicated with different colors. Error bars indicate standard deviation of the mean. (f) Cumulative distribution of the decay times (T½, single-exponential fit from last fluorescence maximum). Decay times of neurons with nuclear exclusion are similar at 10 to 120 days (colored lines, p = 0.22, Kolmogorov–Smirnov test). Nuclear-filled neurons have significantly longer decay times (black line, p = 5.78e-10, Kolmogorov–Smirnov test). (g) GCaMP3 expression in L2/3 neurons of the primary motor cortex at 72 days post injection (top, 30 μm scale bar) and ΔF/F traces of individual cells (bottom, black lines). Relative treadmill movement indicated by red line (F: forward, B: backward). (h) The same field of view and fluorescent traces as (g) at 120 days post injection.