The nerve impulse is characterised by a great influx of sodium ions through channels in the neuron's cell membrane followed by an efflux of potassium ions through other channels. The neuron is unable to fire again for a short time (known as the refractory period), which is mediated by another potassium channel. The flow through these ion channels is governed by a "gate" which is opened by either a voltage change or a chemical messenger known as a ligand (such as a neurotransmitter). These channels are another target for anticonvulsant drugs.[7]

The brain is composed of a network of neurons that transmit signals by propagating nerve impulses. The propagation of this impulse from one neuron to another is typically controlled by neurotransmitters, though there are also electrical pathways between some neurons. Neurotransmitters can inhibit impulse firing (primarily done by γ-aminobutyric acid, or GABA) or they can excite the neuron into firing (primarily done by glutamate). A neuron that releases inhibitory neurotransmitters from its terminals is called an inhibitory neuron, while one that releases excitatory neurotransmitters is an excitatory neuron. When the normal balance between inhibition and excitation is significantly disrupted in all or part of the brain, a seizure can occur. The GABA system is an important target for anticonvulsant drugs, since seizures may be discouraged by increasing GABA synthesis, decreasing its breakdown, or enhancing its effect on neurons.[7]

When you eat less than 50 grams of carbs a day, your body eventually runs out of fuel (blood sugar) it can use quickly. This typically takes 3 to 4 days. Then you’ll start to break down protein and fat for energy, which can make you lose weight. This is called ketosis. It's important to note that the ketogenic diet is a short term diet that's focussed on weight loss rather than the pursuit of health benefits. 
Note: Are you a vegetarian or vegan and want to go on a ketogenic diet? It’s still possible! Just keep in mind that the dietary restrictions can sometimes be a little bit intense. Make sure to plan ahead and prepare to aid your success. To help out, we’ve published articles (with 7 day meal plans included) for both the vegetarian ketogenic diet and the vegan ketogenic diet.
^ Ketogenic "eggnog" is used during induction and is a drink with the required ketogenic ratio. For example, a 4:1 ratio eggnog would contain 60 g of 36% heavy whipping cream, 25 g pasteurised raw egg, saccharin and vanilla flavour. This contains 245 kcal (1,025 kJ), 4 g protein, 2 g carbohydrate and 24 g fat (24:6 = 4:1).[17] The eggnog may also be cooked to make a custard, or frozen to make ice cream.[37]
But people who started following the keto diet noticed weight loss for a few reasons: When you eat carbs, your body retains fluid in order to store carbs for energy (you know, in case it needs it). But when you’re not having much in the carb department, you lose this water weight, says Warren. Also, it's easy to go overboard on carbohydrates—but if you're loading up on fat, it may help curb cravings since it keeps you satisfied.
“Especially early on, new-onset diabetes can cause weight loss,” Dr. Cappola says. You may also feel crazy thirsty and notice you’re peeing all the time. “Your body is literally peeing out glucose because you can’t absorb it, and that drives thirst,” she explains. Diabetes also causes your body to suck nourishment from your muscles, which fuels the sudden weight drop.
Around this time, Bernarr Macfadden, an American exponent of physical culture, popularised the use of fasting to restore health. His disciple, the osteopathic physician Dr. Hugh William Conklin of Battle Creek, Michigan, began to treat his epilepsy patients by recommending fasting. Conklin conjectured that epileptic seizures were caused when a toxin, secreted from the Peyer's patches in the intestines, was discharged into the bloodstream. He recommended a fast lasting 18 to 25 days to allow this toxin to dissipate. Conklin probably treated hundreds of epilepsy patients with his "water diet" and boasted of a 90% cure rate in children, falling to 50% in adults. Later analysis of Conklin's case records showed 20% of his patients achieved freedom from seizures and 50% had some improvement.[10]

The classic ketogenic diet is not a balanced diet and only contains tiny portions of fresh fruit and vegetables, fortified cereals, and calcium-rich foods. In particular, the B vitamins, calcium, and vitamin D must be artificially supplemented. This is achieved by taking two sugar-free supplements designed for the patient's age: a multivitamin with minerals and calcium with vitamin D.[18] A typical day of food for a child on a 4:1 ratio, 1,500 kcal (6,300 kJ) ketogenic diet comprises three small meals and three small snacks:[28]
Another difference between older and newer studies is that the type of patients treated with the ketogenic diet has changed over time. When first developed and used, the ketogenic diet was not a treatment of last resort; in contrast, the children in modern studies have already tried and failed a number of anticonvulsant drugs, so may be assumed to have more difficult-to-treat epilepsy. Early and modern studies also differ because the treatment protocol has changed. In older protocols, the diet was initiated with a prolonged fast, designed to lose 5–10% body weight, and heavily restricted the calorie intake. Concerns over child health and growth led to a relaxation of the diet's restrictions.[19] Fluid restriction was once a feature of the diet, but this led to increased risk of constipation and kidney stones, and is no longer considered beneficial.[18]
Advocates for the diet recommend that it be seriously considered after two medications have failed, as the chance of other drugs succeeding is only 10%.[9][31][32] The diet can be considered earlier for some epilepsy and genetic syndromes where it has shown particular usefulness. These include Dravet syndrome, infantile spasms, myoclonic-astatic epilepsy, and tuberous sclerosis complex.[9][33]
The Mayo Clinic Diet is designed to help you lose up to 6 to 10 pounds (2.7 to 4.5 kilograms) during the initial two-week phase. After that, you transition into the second phase, where you continue to lose 1 to 2 pounds (0.5 to 1 kilogram) a week until you reach your goal weight. By continuing the lifelong habits that you've learned, you can then maintain your goal weight for the rest of your life.