In the glowing pickle experiment, a pickle is connected to an electric circuit using copper wires, and when an electric current is passed through the pickle, it glows yellow-green due to the ionization of sodium atoms in the pickle. The high voltage causes the sodium atoms to lose an electron, creating a positively charged ion. When the ion recombines with an electron, it releases energy in the form of light, creating the glowing effect.