##// END OF EJS Templates
Use `io.open` ensure the file is read as UTF-8.
Bradley M. Froehle -
Show More
@@ -193,7 +193,8 b' class CythonMagics(Magics):'
193 193 self._import_all(module)
194 194
195 195 if args.annotate:
196 with open(os.path.join(lib_dir, module_name + '.html')) as f:
196 html_file = os.path.join(lib_dir, module_name + '.html')
197 with io.open(html_file, encoding='utf-8') as f:
197 198 annotated_html = f.read()
198 199 return display.HTML(annotated_html)
199 200
General Comments 0
You need to be logged in to leave comments. Login now