import pandas as pd
from datetime import datetime
def generate_notes(source, template):
outline = parse_outline(source['chapters'])
notes = []
for chapter in outline:
note = template.format(
title=chapter['title'],
content=chapter['summary'],
key_points=chapter['key_points']
)
notes.append(note)
return notes
source = pd.read_json('course_material.json')
notes = generate_notes(source, LECTURE_TEMPLATE)
with open('lecture_notes.md', 'w') as f:
for note in notes:
f.write(note + '\n---\n')
print(f'Generated {len(notes)} lecture notes')