What is the best way to punctuate the bolded portion of the sentence?

He wrote many scholarly essays about a variety of topics the teacher explained.

He wrote many scholarly essays about a variety of topics,
“He wrote many scholarly essays about a variety of topics,”
“He wrote many scholarly essays about a variety of topics”.
“He wrote many scholarly essays about a variety of topics”