In this protocol we detail the steps to perform ex-vivo brain slices electrophysiology and optogenetic stimulation and/or 2-photon uncaging recordings.