Two days prior, Lucio's lesson had ended early and Pansy had brought him into the library to visit her and Martin. Hermione had been delighted to see them, and, after having made sure she wasn't hindering Martin's painting progress, brought him up into her lap.