A Queensland school has been treated to the "best science lesson ever" thanks to a six-foot carpet python invading a year three classroom.

The rogue reptile was spotted on the windowsill in one of the rooms at Eumundi State School on Tuesday.

Noosa snake catcher Luke Huntley was called out to retrieve it in front of a crowd of about 25 excited school students who were in the middle of their science lesson.

He recorded the incident and posted it to his Facebook page.

Since Wednesday afternoon the video has been viewed more than 7,200 times.

"Of all the places at the school it was the science room, which was fantastic," Mr Huntley said.

"It was sitting on the inside of the glass. The whole classroom was watching, and they basically had a live science lesson as I took it down.

"It was a good six-foot python."

After pulling the python down from the window Mr Huntley allowed it to wrap itself around empty chairs and tables to the delight of the crowd of children.

"My favourite comment was, 'this is the best science lesson ever'," he said.

"There was a lot of giggling and laughing, and I have to be honest — I put on a bit of a show with the snake.

"I let it climb out and around the chairs and I think they liked that. It made it a bit more interesting than putting it straight in the bag.

This was not Mr Huntley's first call out to the northern Sunshine Coast school.

"It's a really busy spot," he said. "I get called to the school quite regularly either for pythons or eastern browns."

"The kids there are just fantastic. They're always willing to help or point where it's going. It's just a great school."

The python was eventually released into a local state forest.

One parent told ABC News the incident was the "talk of the playground" that day.

Yesterday video of a python nicknamed "Monty" grabbing a dead possum by the head and eating it on the Gold Coast went viral.