Is epilepsy inherited?

Occasionally. There are different forms of epilepsy. Usually, you don't see epilepsy in the offspring of epileptics, although, there exists an increased risk for those born of an epileptic.
It can be. Impressive studies are finding genetic links for many of the epilepsies. Many mild forms are clearly genetic including febrile seizures, neonatal seizures, and juvenile myoclonic epilepsy. Genetic syndromes such as nf and ts are highly genetic and often express as epilepsy. If the epilepsy is clearly due to trauma, tumor, or stroke, the genetics are less clear but still may play a role.