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