I'm interested in the prospect of using pencils as electrodes for electrolysis of water, but I'm trying to figure out a way to attach the wires from the power supply to the other end of each pencil so that the electrical connection is sound but I can seal it up to immerse (so that the exposed electrodes are underwater in tubes).
Here's a pencil example, but the gases from both working ends are open to the surface.
I'd like to make something structurally more like these examples, in order to capture the gases separately, but AFAICT I'd need either U-shaped pencils (!) or a way to attach the wires to the pencils securely under (I guess) heat-shrink insulation.
Suggestions?