def render(file):
fp = file.open()<EOL>content = fp.read()<EOL>fp.close()<EOL>notebook = nbformat.reads(content.decode('<STR_LIT:utf-8>'), as_version=<NUM_LIT:4>)<EOL>html_exporter = HTMLExporter()<EOL>html_exporter.template_file = '<STR_LIT>'<EOL>(body, resources) = html_exporter.from_notebook_node(notebook)<EOL>return body, resources<EOL>
Generate the result HTML.