No pleas were entered but Richard Wright QC, defending, said: "He has accepted responsibility for the unlawful killing of the deceased".

Ann Maguire was stabbed to death in front of her pupils

A trial on the murder charge is scheduled for November. The teenager appeared on two video screens in the packed courtroom.

He was wearing an orange T-shirt with blue trousers and spoke twice - to confirm his name as the 10 minute long hearing began, and to acknowledge he understood what was happening, when the judge asked him at the end.

Wright, Paul Greaney QC, prosecuting, and the judge, Judge Peter Collier QC, all sat in court without their normal robes.

The court heard that expert psychiatric reports would now be prepared before the trial.

Wright said: "The defendant accepts that he unlawfully killed Ann Maguire. The issue in the case will be whether or not a partial defence is available to him."

Greaney said: "It does not amount to an admission he is guilty of murder. It does amount to an admission he's guilty of manslaughter."

Both the judge and Greaney asked the public to be extremely careful about using social media to discuss this case and stressed there could be heavy penalties for naming the defendant or other details about the case ahead of the trial.

Maguire's death was the first time a teacher has been stabbed to death in a British classroom and the first killing of a teacher in a school since the 1996 Dunblane massacre.

She first went to Corpus Christi as a student teacher and last year the school held a celebration of her 40 years of service.

This year, she had moved to working four days a week ahead of her planned retirement.

Maguire, who was head of Year 11 at the school for more than 10 years, lived in the Moortown area of Leeds with her husband, Don, who is a former maths teacher and landscape gardener.

The teenager was told he will appear again for a hearing on September 26. He was remanded in custody.