I learrned something new, didn't know the P-38 canopy had two versions of opening: up and back or to the side. I always thought it was up and back only.Check your references, I'm not positive about the F model, but I'm pretty sure all the canopies were similar in their opening mechanism.
The two side panels "rolled down" into the fuselage similar to an automobile, and the top part was hinged in the back. A latch was released up in the front and it flipped backwards on that hinge.
View attachment 198533