I've never tried it and searching the site with the "search community" button yielded nothing, but there was a post a while ago by a great maker named Rodney who used what appeared to be components from a flashlight to make a light-up jackolantern stick.
I decided to make 3 more pumpkin canes this year to sell. I've refined the wiring a bit. The first one I made is a pain and not suited to sell. This one is carved from oak with a maple handle and a dyed black maple shank. I used India ink for the black color. It's a great shade of black but...