The Professor was getting excited according to his wont, and was allowing his imagination to run away with him.
Le professeur s'animait, suivant son habitude, en se laissant emporter par son imagination.