If you want to emphasize the duration of the Edison's learning process, then use "was having"; if you want to draw attention to the fact of taking regular lessons, use"had".
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.