This paper describes a protocol for ex vivo calcium imaging of the Drosophila brain. In this method, natural or synthetic compounds can be applied to the buffer to test their ability to activate particular neurons in the brain.