##// END OF EJS Templates
Tweak to notebook -> .py export, at Fernando's suggestion.
Thomas Kluyver -
Show More
@@ -113,8 +113,8 b' class PyReader(NotebookReader):'
113 113 class PyWriter(NotebookWriter):
114 114
115 115 def writes(self, nb, **kwargs):
116 lines = []
117 lines.extend([u'# coding: utf-8', u'# <nbformat>2</nbformat>',''])
116 lines = [u'# coding: utf-8']
117 lines.extend([u'# <nbformat>2</nbformat>',''])
118 118 for ws in nb.worksheets:
119 119 for cell in ws.cells:
120 120 if cell.cell_type == u'code':
General Comments 0
You need to be logged in to leave comments. Login now