##// END OF EJS Templates
Fix handling of raw cells in all converters, add stderr to test nb
Fernando Perez -
Show More
@@ -1,640 +1,682 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python
2 """Convert IPython notebooks to other formats, such as ReST, and HTML.
2 """Convert IPython notebooks to other formats, such as ReST, and HTML.
3
3
4 Example:
4 Example:
5 ./nbconvert.py --format html file.ipynb
5 ./nbconvert.py --format html file.ipynb
6
6
7 Produces 'file.rst' and 'file.html', along with auto-generated figure files
7 Produces 'file.rst' and 'file.html', along with auto-generated figure files
8 called nb_figure_NN.png. To avoid the two-step process, ipynb -> rst -> html,
8 called nb_figure_NN.png. To avoid the two-step process, ipynb -> rst -> html,
9 use '--format quick-html' which will do ipynb -> html, but won't look as
9 use '--format quick-html' which will do ipynb -> html, but won't look as
10 pretty.
10 pretty.
11 """
11 """
12 from __future__ import print_function
12 from __future__ import print_function
13
13
14 import codecs
14 import codecs
15 import logging
15 import os
16 import os
16 import pprint
17 import pprint
17 import re
18 import re
18 import subprocess
19 import subprocess
19 import sys
20 import sys
20
21
21 from IPython.external import argparse
22 from IPython.external import argparse
22 from IPython.nbformat import current as nbformat
23 from IPython.nbformat import current as nbformat
23 from IPython.utils.text import indent
24 from IPython.utils.text import indent
24 from decorators import DocInherit
25 from decorators import DocInherit
25
26
26 def remove_ansi(src):
27 def remove_ansi(src):
27 """Strip all ANSI color escape sequences from input string.
28 """Strip all ANSI color escape sequences from input string.
28
29
29 Parameters
30 Parameters
30 ----------
31 ----------
31 src : string
32 src : string
32
33
33 Returns
34 Returns
34 -------
35 -------
35 string
36 string
36 """
37 """
37 return re.sub(r'\033\[(0|\d;\d\d)m', '', src)
38 return re.sub(r'\033\[(0|\d;\d\d)m', '', src)
38
39
39 # Pandoc-dependent code
40 # Pandoc-dependent code
40 def markdown2latex(src):
41 def markdown2latex(src):
41 """Convert a markdown string to LaTeX via pandoc.
42 """Convert a markdown string to LaTeX via pandoc.
42
43
43 This function will raise an error if pandoc is not installed.
44 This function will raise an error if pandoc is not installed.
44
45
45 Any error messages generated by pandoc are printed to stderr.
46 Any error messages generated by pandoc are printed to stderr.
46
47
47 Parameters
48 Parameters
48 ----------
49 ----------
49 src : string
50 src : string
50 Input string, assumed to be valid markdown.
51 Input string, assumed to be valid markdown.
51
52
52 Returns
53 Returns
53 -------
54 -------
54 out : string
55 out : string
55 Output as returned by pandoc.
56 Output as returned by pandoc.
56 """
57 """
57 p = subprocess.Popen('pandoc -f markdown -t latex'.split(),
58 p = subprocess.Popen('pandoc -f markdown -t latex'.split(),
58 stdin=subprocess.PIPE, stdout=subprocess.PIPE)
59 stdin=subprocess.PIPE, stdout=subprocess.PIPE)
59 out, err = p.communicate(src)
60 out, err = p.communicate(src)
60 if err:
61 if err:
61 print(err, file=sys.stderr)
62 print(err, file=sys.stderr)
62 #print('*'*20+'\n', out, '\n'+'*'*20) # dbg
63 #print('*'*20+'\n', out, '\n'+'*'*20) # dbg
63 return out
64 return out
64
65
65 # Cell converters
66 # Cell converters
66
67
67
68
68 def rst_directive(directive, text=''):
69 def rst_directive(directive, text=''):
69 out = [directive, '']
70 out = [directive, '']
70 if text:
71 if text:
71 out.extend([indent(text), ''])
72 out.extend([indent(text), ''])
72 return out
73 return out
73
74
74 # Converters for parts of a cell.
75 # Converters for parts of a cell.
75
76
76
77
77 class ConversionException(Exception):
78 class ConversionException(Exception):
78 pass
79 pass
79
80
80
81
81 class Converter(object):
82 class Converter(object):
82 default_encoding = 'utf-8'
83 default_encoding = 'utf-8'
83 extension = str()
84 extension = str()
84 figures_counter = 0
85 figures_counter = 0
85 infile = str()
86 infile = str()
86 infile_dir = str()
87 infile_dir = str()
87 infile_root = str()
88 infile_root = str()
88 files_dir = str()
89 files_dir = str()
89 with_preamble = True
90 with_preamble = True
90 user_preamble = None
91 user_preamble = None
91 output = str()
92 output = str()
93 raw_as_verbatim = False
92
94
93 def __init__(self, infile):
95 def __init__(self, infile):
94 self.infile = infile
96 self.infile = infile
95 self.infile_dir = os.path.dirname(infile)
97 self.infile_dir = os.path.dirname(infile)
96 infile_root = os.path.splitext(infile)[0]
98 infile_root = os.path.splitext(infile)[0]
97 files_dir = infile_root + '_files'
99 files_dir = infile_root + '_files'
98 if not os.path.isdir(files_dir):
100 if not os.path.isdir(files_dir):
99 os.mkdir(files_dir)
101 os.mkdir(files_dir)
100 self.infile_root = infile_root
102 self.infile_root = infile_root
101 self.files_dir = files_dir
103 self.files_dir = files_dir
102
104
103 def dispatch(self, cell_type):
105 def dispatch(self, cell_type):
104 """return cell_type dependent render method, for example render_code
106 """return cell_type dependent render method, for example render_code
105 """
107 """
106 return getattr(self, 'render_' + cell_type, self.render_unknown)
108 return getattr(self, 'render_' + cell_type, self.render_unknown)
107
109
108 def convert(self):
110 def convert(self):
109 lines = []
111 lines = []
110 lines.extend(self.optional_header())
112 lines.extend(self.optional_header())
111 for worksheet in self.nb.worksheets:
113 for worksheet in self.nb.worksheets:
112 for cell in worksheet.cells:
114 for cell in worksheet.cells:
115 #print(cell.cell_type) # dbg
113 conv_fn = self.dispatch(cell.cell_type)
116 conv_fn = self.dispatch(cell.cell_type)
114 lines.extend(conv_fn(cell))
117 lines.extend(conv_fn(cell))
115 lines.append('')
118 lines.append('')
116 lines.extend(self.optional_footer())
119 lines.extend(self.optional_footer())
117 return '\n'.join(lines)
120 return '\n'.join(lines)
118
121
119 def render(self):
122 def render(self):
120 "read, convert, and save self.infile"
123 "read, convert, and save self.infile"
121 self.read()
124 self.read()
122 self.output = self.convert()
125 self.output = self.convert()
123 return self.save()
126 return self.save()
124
127
125 def read(self):
128 def read(self):
126 "read and parse notebook into NotebookNode called self.nb"
129 "read and parse notebook into NotebookNode called self.nb"
127 with open(self.infile) as f:
130 with open(self.infile) as f:
128 self.nb = nbformat.read(f, 'json')
131 self.nb = nbformat.read(f, 'json')
129
132
130 def save(self, infile=None, encoding=None):
133 def save(self, infile=None, encoding=None):
131 "read and parse notebook into self.nb"
134 "read and parse notebook into self.nb"
132 if infile is None:
135 if infile is None:
133 infile = os.path.splitext(self.infile)[0] + '.' + self.extension
136 infile = os.path.splitext(self.infile)[0] + '.' + self.extension
134 if encoding is None:
137 if encoding is None:
135 encoding = self.default_encoding
138 encoding = self.default_encoding
136 with open(infile, 'w') as f:
139 with open(infile, 'w') as f:
137 f.write(self.output.encode(encoding))
140 f.write(self.output.encode(encoding))
138 return infile
141 return infile
139
142
140 def optional_header(self):
143 def optional_header(self):
141 return []
144 return []
142
145
143 def optional_footer(self):
146 def optional_footer(self):
144 return []
147 return []
145
148
146 def _new_figure(self, data, fmt):
149 def _new_figure(self, data, fmt):
147 """Create a new figure file in the given format.
150 """Create a new figure file in the given format.
148
151
149 Returns a path relative to the input file.
152 Returns a path relative to the input file.
150 """
153 """
151 figname = '%s_fig_%02i.%s' % (self.infile_root,
154 figname = '%s_fig_%02i.%s' % (self.infile_root,
152 self.figures_counter, fmt)
155 self.figures_counter, fmt)
153 self.figures_counter += 1
156 self.figures_counter += 1
154 fullname = os.path.join(self.files_dir, figname)
157 fullname = os.path.join(self.files_dir, figname)
155
158
156 # Binary files are base64-encoded, SVG is already XML
159 # Binary files are base64-encoded, SVG is already XML
157 if fmt in ('png', 'jpg', 'pdf'):
160 if fmt in ('png', 'jpg', 'pdf'):
158 data = data.decode('base64')
161 data = data.decode('base64')
159 fopen = lambda fname: open(fname, 'wb')
162 fopen = lambda fname: open(fname, 'wb')
160 else:
163 else:
161 fopen = lambda fname: codecs.open(fname, 'wb', self.default_encoding)
164 fopen = lambda fname: codecs.open(fname, 'wb', self.default_encoding)
162
165
163 with fopen(fullname) as f:
166 with fopen(fullname) as f:
164 f.write(data)
167 f.write(data)
165
168
166 return fullname
169 return fullname
167
170
168 def render_heading(self, cell):
171 def render_heading(self, cell):
169 """convert a heading cell
172 """convert a heading cell
170
173
171 Returns list."""
174 Returns list."""
172 raise NotImplementedError
175 raise NotImplementedError
173
176
174 def render_code(self, cell):
177 def render_code(self, cell):
175 """Convert a code cell
178 """Convert a code cell
176
179
177 Returns list."""
180 Returns list."""
178 raise NotImplementedError
181 raise NotImplementedError
179
182
180 def render_markdown(self, cell):
183 def render_markdown(self, cell):
181 """convert a markdown cell
184 """convert a markdown cell
182
185
183 Returns list."""
186 Returns list."""
184 raise NotImplementedError
187 raise NotImplementedError
185
188
186 def render_pyout(self, output):
189 def render_pyout(self, output):
187 """convert pyout part of a code cell
190 """convert pyout part of a code cell
188
191
189 Returns list."""
192 Returns list."""
190 raise NotImplementedError
193 raise NotImplementedError
191
194
192
195
193 def render_pyerr(self, output):
196 def render_pyerr(self, output):
194 """convert pyerr part of a code cell
197 """convert pyerr part of a code cell
195
198
196 Returns list."""
199 Returns list."""
197 raise NotImplementedError
200 raise NotImplementedError
198
201
199 def _img_lines(self, img_file):
202 def _img_lines(self, img_file):
200 """Return list of lines to include an image file."""
203 """Return list of lines to include an image file."""
201 # Note: subclasses may choose to implement format-specific _FMT_lines
204 # Note: subclasses may choose to implement format-specific _FMT_lines
202 # methods if they so choose (FMT in {png, svg, jpg, pdf}).
205 # methods if they so choose (FMT in {png, svg, jpg, pdf}).
203 raise NotImplementedError
206 raise NotImplementedError
204
207
205 def render_display_data(self, output):
208 def render_display_data(self, output):
206 """convert display data from the output of a code cell
209 """convert display data from the output of a code cell
207
210
208 Returns list.
211 Returns list.
209 """
212 """
210 lines = []
213 lines = []
211
214
212 for fmt in ['png', 'svg', 'jpg', 'pdf']:
215 for fmt in ['png', 'svg', 'jpg', 'pdf']:
213 if fmt in output:
216 if fmt in output:
214 img_file = self._new_figure(output[fmt], fmt)
217 img_file = self._new_figure(output[fmt], fmt)
215 # Subclasses can have format-specific render functions (e.g.,
218 # Subclasses can have format-specific render functions (e.g.,
216 # latex has to auto-convert all SVG to PDF first).
219 # latex has to auto-convert all SVG to PDF first).
217 lines_fun = getattr(self, '_%s_lines' % fmt, None)
220 lines_fun = getattr(self, '_%s_lines' % fmt, None)
218 if not lines_fun:
221 if not lines_fun:
219 lines_fun = self._img_lines
222 lines_fun = self._img_lines
220 lines.extend(lines_fun(img_file))
223 lines.extend(lines_fun(img_file))
221
224
222 return lines
225 return lines
223
226
224 def render_stream(self, cell):
227 def render_stream(self, cell):
225 """convert stream part of a code cell
228 """convert stream part of a code cell
226
229
227 Returns list."""
230 Returns list."""
228 raise NotImplementedError
231 raise NotImplementedError
229
232
230 def render_plaintext(self, cell):
233 def render_raw(self, cell):
231 """convert plain text
234 """convert a cell with raw text
232
235
233 Returns list."""
236 Returns list."""
234 raise NotImplementedError
237 raise NotImplementedError
235
238
236 def render_unknown(self, cell):
239 def render_unknown(self, cell):
237 """Render cells of unkown type
240 """Render cells of unkown type
238
241
239 Returns list."""
242 Returns list."""
243 data = pprint.pformat(cell)
244 logging.warning('Unknown cell:\n%s' % data)
245 return self._unknown_lines(data)
246
247 def _unknown_lines(self, data):
248 """Return list of lines for an unknown cell.
249
250 Parameters
251 ----------
252 data : str
253 The content of the unknown data as a single string.
254 """
240 raise NotImplementedError
255 raise NotImplementedError
241
256
242
257
243 class ConverterRST(Converter):
258 class ConverterRST(Converter):
244 extension = 'rst'
259 extension = 'rst'
245 heading_level = {1: '=', 2: '-', 3: '`', 4: '\'', 5: '.', 6: '~'}
260 heading_level = {1: '=', 2: '-', 3: '`', 4: '\'', 5: '.', 6: '~'}
246
261
247 @DocInherit
262 @DocInherit
248 def render_heading(self, cell):
263 def render_heading(self, cell):
249 marker = self.heading_level[cell.level]
264 marker = self.heading_level[cell.level]
250 return ['{0}\n{1}\n'.format(cell.source, marker * len(cell.source))]
265 return ['{0}\n{1}\n'.format(cell.source, marker * len(cell.source))]
251
266
252 @DocInherit
267 @DocInherit
253 def render_code(self, cell):
268 def render_code(self, cell):
254 if not cell.input:
269 if not cell.input:
255 return []
270 return []
256
271
257 lines = ['In[%s]:' % cell.prompt_number, '']
272 lines = ['In[%s]:' % cell.prompt_number, '']
258 lines.extend(rst_directive('.. code:: python', cell.input))
273 lines.extend(rst_directive('.. code:: python', cell.input))
259
274
260 for output in cell.outputs:
275 for output in cell.outputs:
261 conv_fn = self.dispatch(output.output_type)
276 conv_fn = self.dispatch(output.output_type)
262 lines.extend(conv_fn(output))
277 lines.extend(conv_fn(output))
263
278
264 return lines
279 return lines
265
280
266 @DocInherit
281 @DocInherit
267 def render_markdown(self, cell):
282 def render_markdown(self, cell):
268 return [cell.source]
283 return [cell.source]
269
284
270 @DocInherit
285 @DocInherit
271 def render_plaintext(self, cell):
286 def render_raw(self, cell):
287 if self.raw_as_verbatim:
288 return ['::', '', indent(cell.source), '']
289 else:
272 return [cell.source]
290 return [cell.source]
273
291
274 @DocInherit
292 @DocInherit
275 def render_pyout(self, output):
293 def render_pyout(self, output):
276 lines = ['Out[%s]:' % output.prompt_number, '']
294 lines = ['Out[%s]:' % output.prompt_number, '']
277
295
278 # output is a dictionary like object with type as a key
296 # output is a dictionary like object with type as a key
279 if 'latex' in output:
297 if 'latex' in output:
280 lines.extend(rst_directive('.. math::', output.latex))
298 lines.extend(rst_directive('.. math::', output.latex))
281
299
282 if 'text' in output:
300 if 'text' in output:
283 lines.extend(rst_directive('.. parsed-literal::', output.text))
301 lines.extend(rst_directive('.. parsed-literal::', output.text))
284
302
285 return lines
303 return lines
286
304
287 @DocInherit
305 @DocInherit
306 def render_pyerr(self, output):
307 # Note: a traceback is a *list* of frames.
308 return ['::', '', indent(remove_ansi('\n'.join(output.traceback))), '']
309
310 @DocInherit
288 def _img_lines(self, img_file):
311 def _img_lines(self, img_file):
289 return ['.. image:: %s' % img_file, '']
312 return ['.. image:: %s' % img_file, '']
290
313
291 @DocInherit
314 @DocInherit
292 def render_stream(self, output):
315 def render_stream(self, output):
293 lines = []
316 lines = []
294
317
295 if 'text' in output:
318 if 'text' in output:
296 lines.extend(rst_directive('.. parsed-literal::', output.text))
319 lines.extend(rst_directive('.. parsed-literal::', output.text))
297
320
298 return lines
321 return lines
299
322
300 @DocInherit
323 @DocInherit
301 def render_unknown(self, cell):
324 def _unknown_lines(self, data):
302 return rst_directive('.. warning:: Unknown cell') + [repr(cell)]
325 return rst_directive('.. warning:: Unknown cell') + [data]
303
326
304
327
305 class ConverterQuickHTML(Converter):
328 class ConverterQuickHTML(Converter):
306 extension = 'html'
329 extension = 'html'
307
330
331 def in_tag(self, tag, src):
332 """Return a list of elements bracketed by the given tag"""
333 return ['<%s>' % tag, src, '</%s>' % tag]
334
308 def optional_header(self):
335 def optional_header(self):
309 # XXX: inject the IPython standard CSS into here
336 # XXX: inject the IPython standard CSS into here
310 s = """<html>
337 s = """<html>
311 <head>
338 <head>
312 </head>
339 </head>
313
340
314 <body>
341 <body>
315 """
342 """
316 return s.splitlines()
343 return s.splitlines()
317
344
318 def optional_footer(self):
345 def optional_footer(self):
319 s = """</body>
346 s = """</body>
320 </html>
347 </html>
321 """
348 """
322 return s.splitlines()
349 return s.splitlines()
323
350
324 @DocInherit
351 @DocInherit
325 def render_heading(self, cell):
352 def render_heading(self, cell):
326 marker = cell.level
353 marker = cell.level
327 return ['<h{1}>\n {0}\n</h{1}>'.format(cell.source, marker)]
354 return ['<h{1}>\n {0}\n</h{1}>'.format(cell.source, marker)]
328
355
329 @DocInherit
356 @DocInherit
330 def render_code(self, cell):
357 def render_code(self, cell):
331 if not cell.input:
358 if not cell.input:
332 return []
359 return []
333
360
334 lines = ['<table>']
361 lines = ['<table>']
335 lines.append('<tr><td><tt>In [<b>%s</b>]:</tt></td><td><tt>' % cell.prompt_number)
362 lines.append('<tr><td><tt>In [<b>%s</b>]:</tt></td><td><tt>' % cell.prompt_number)
336 lines.append("<br>\n".join(cell.input.splitlines()))
363 lines.append("<br>\n".join(cell.input.splitlines()))
337 lines.append('</tt></td></tr>')
364 lines.append('</tt></td></tr>')
338
365
339 for output in cell.outputs:
366 for output in cell.outputs:
340 lines.append('<tr><td></td><td>')
367 lines.append('<tr><td></td><td>')
341 conv_fn = self.dispatch(output.output_type)
368 conv_fn = self.dispatch(output.output_type)
342 lines.extend(conv_fn(output))
369 lines.extend(conv_fn(output))
343 lines.append('</td></tr>')
370 lines.append('</td></tr>')
344
371
345 lines.append('</table>')
372 lines.append('</table>')
346 return lines
373 return lines
347
374
348 @DocInherit
375 @DocInherit
349 def render_markdown(self, cell):
376 def render_markdown(self, cell):
350 return ["<pre>"+cell.source+"</pre>"]
377 return self.in_tag('pre', cell.source)
351
378
352 @DocInherit
379 @DocInherit
353 def render_plaintext(self, cell):
380 def render_raw(self, cell):
354 return ["<pre>"+cell.source+"</pre>"]
381 if self.raw_as_verbatim:
382 return self.in_tag('pre', cell.source)
383 else:
384 return [cell.source]
355
385
356 @DocInherit
386 @DocInherit
357 def render_pyout(self, output):
387 def render_pyout(self, output):
358 lines = ['<tr><td><tt>Out[<b>%s</b>]:</tt></td></tr>' % output.prompt_number, '<td>']
388 lines = ['<tr><td><tt>Out[<b>%s</b>]:</tt></td></tr>' %
389 output.prompt_number, '<td>']
359
390
360 # output is a dictionary like object with type as a key
391 # output is a dictionary like object with type as a key
361 if 'latex' in output:
392 for out_type in ('text', 'latex'):
362 lines.append("<pre>")
393 if out_type in output:
363 lines.extend(indent(output.latex))
394 lines.extend(self.in_tag('pre', indent(output[out_type])))
364 lines.append("</pre>")
365
366 if 'text' in output:
367 lines.append("<pre>")
368 lines.extend(indent(output.text))
369 lines.append("</pre>")
370
395
371 return lines
396 return lines
372
397
373 @DocInherit
398 @DocInherit
399 def render_pyerr(self, output):
400 # Note: a traceback is a *list* of frames.
401 return self.in_tag('pre', remove_ansi('\n'.join(output.traceback)))
402
403 @DocInherit
374 def _img_lines(self, img_file):
404 def _img_lines(self, img_file):
375 return ['<img src="%s">' % img_file, '']
405 return ['<img src="%s">' % img_file, '']
376
406
377 @DocInherit
407 @DocInherit
378 def render_stream(self, output):
408 def render_stream(self, output):
379 lines = []
409 lines = []
380
410
381 if 'text' in output:
411 if 'text' in output:
382 lines.append(output.text)
412 lines.append(output.text)
383
413
384 return lines
414 return lines
385
415
416 @DocInherit
417 def _unknown_lines(self, data):
418 return ['<h2>Warning:: Unknown cell</h2>'] + self.in_tag('pre', data)
419
386
420
387 class ConverterLaTeX(Converter):
421 class ConverterLaTeX(Converter):
388 """Converts a notebook to a .tex file suitable for pdflatex.
422 """Converts a notebook to a .tex file suitable for pdflatex.
389
423
390 Note: this converter *needs*:
424 Note: this converter *needs*:
391
425
392 - `pandoc`: for all conversion of markdown cells. If your notebook only
426 - `pandoc`: for all conversion of markdown cells. If your notebook only
393 has Raw cells, pandoc will not be needed.
427 has Raw cells, pandoc will not be needed.
394
428
395 - `inkscape`: if your notebook has SVG figures. These need to be
429 - `inkscape`: if your notebook has SVG figures. These need to be
396 converted to PDF before inclusion in the TeX file, as LaTeX doesn't
430 converted to PDF before inclusion in the TeX file, as LaTeX doesn't
397 understand SVG natively.
431 understand SVG natively.
398
432
399 You will in general obtain much better final PDF results if you configure
433 You will in general obtain much better final PDF results if you configure
400 the matplotlib backend to create SVG output with
434 the matplotlib backend to create SVG output with
401
435
402 %config InlineBackend.figure_format = 'svg'
436 %config InlineBackend.figure_format = 'svg'
403
437
404 (or set the equivalent flag at startup or in your configuration profile).
438 (or set the equivalent flag at startup or in your configuration profile).
405 """
439 """
406 extension = 'tex'
440 extension = 'tex'
407 documentclass = 'article'
441 documentclass = 'article'
408 documentclass_options = '11pt,english'
442 documentclass_options = '11pt,english'
409 heading_map = {1: r'\section',
443 heading_map = {1: r'\section',
410 2: r'\subsection',
444 2: r'\subsection',
411 3: r'\subsubsection',
445 3: r'\subsubsection',
412 4: r'\paragraph',
446 4: r'\paragraph',
413 5: r'\subparagraph',
447 5: r'\subparagraph',
414 6: r'\subparagraph'}
448 6: r'\subparagraph'}
415
449
416 def env(self, environment, lines):
450 def in_env(self, environment, lines):
417 """Return list of environment lines for input lines
451 """Return list of environment lines for input lines
418
452
419 Parameters
453 Parameters
420 ----------
454 ----------
421 env : string
455 env : string
422 Name of the environment to bracket with begin/end.
456 Name of the environment to bracket with begin/end.
423
457
424 lines: """
458 lines: """
425 out = [r'\begin{%s}' % environment]
459 out = [r'\begin{%s}' % environment]
426 if isinstance(lines, basestring):
460 if isinstance(lines, basestring):
427 out.append(lines)
461 out.append(lines)
428 else: # list
462 else: # list
429 out.extend(lines)
463 out.extend(lines)
430 out.append(r'\end{%s}' % environment)
464 out.append(r'\end{%s}' % environment)
431 return out
465 return out
432
466
433 def convert(self):
467 def convert(self):
434 # The main body is done by the logic in the parent class, and that's
468 # The main body is done by the logic in the parent class, and that's
435 # all we need if preamble support has been turned off.
469 # all we need if preamble support has been turned off.
436 body = super(ConverterLaTeX, self).convert()
470 body = super(ConverterLaTeX, self).convert()
437 if not self.with_preamble:
471 if not self.with_preamble:
438 return body
472 return body
439 # But if preamble is on, then we need to construct a proper, standalone
473 # But if preamble is on, then we need to construct a proper, standalone
440 # tex file.
474 # tex file.
441
475
442 # Tag the document at the top and set latex class
476 # Tag the document at the top and set latex class
443 final = [ r'%% This file was auto-generated by IPython, do NOT edit',
477 final = [ r'%% This file was auto-generated by IPython, do NOT edit',
444 r'%% Conversion from the original notebook file:',
478 r'%% Conversion from the original notebook file:',
445 r'%% {0}'.format(self.infile),
479 r'%% {0}'.format(self.infile),
446 r'%%',
480 r'%%',
447 r'\documentclass[%s]{%s}' % (self.documentclass_options,
481 r'\documentclass[%s]{%s}' % (self.documentclass_options,
448 self.documentclass),
482 self.documentclass),
449 '',
483 '',
450 ]
484 ]
451 # Load our own preamble, which is stored next to the main file. We
485 # Load our own preamble, which is stored next to the main file. We
452 # need to be careful in case the script entry point is a symlink
486 # need to be careful in case the script entry point is a symlink
453 myfile = __file__ if not os.path.islink(__file__) else \
487 myfile = __file__ if not os.path.islink(__file__) else \
454 os.readlink(__file__)
488 os.readlink(__file__)
455 with open(os.path.join(os.path.dirname(myfile), 'preamble.tex')) as f:
489 with open(os.path.join(os.path.dirname(myfile), 'preamble.tex')) as f:
456 final.append(f.read())
490 final.append(f.read())
457
491
458 # Load any additional user-supplied preamble
492 # Load any additional user-supplied preamble
459 if self.user_preamble:
493 if self.user_preamble:
460 final.extend(['', '%% Adding user preamble from file:',
494 final.extend(['', '%% Adding user preamble from file:',
461 '%% {0}'.format(self.user_preamble), ''])
495 '%% {0}'.format(self.user_preamble), ''])
462 with open(self.user_preamble) as f:
496 with open(self.user_preamble) as f:
463 final.append(f.read())
497 final.append(f.read())
464
498
465 # Include document body
499 # Include document body
466 final.extend([ r'\begin{document}', '',
500 final.extend([ r'\begin{document}', '',
467 body,
501 body,
468 r'\end{document}', ''])
502 r'\end{document}', ''])
469 # Retun value must be a string
503 # Retun value must be a string
470 return '\n'.join(final)
504 return '\n'.join(final)
471
505
472 @DocInherit
506 @DocInherit
473 def render_heading(self, cell):
507 def render_heading(self, cell):
474 marker = self.heading_map[cell.level]
508 marker = self.heading_map[cell.level]
475 return ['%s{%s}\n\n' % (marker, cell.source) ]
509 return ['%s{%s}\n\n' % (marker, cell.source) ]
476
510
477 @DocInherit
511 @DocInherit
478 def render_code(self, cell):
512 def render_code(self, cell):
479 if not cell.input:
513 if not cell.input:
480 return []
514 return []
481
515
482 # Cell codes first carry input code, we use lstlisting for that
516 # Cell codes first carry input code, we use lstlisting for that
483 lines = [r'\begin{codecell}']
517 lines = [r'\begin{codecell}']
484
518
485 lines.extend(self.env('codeinput',
519 lines.extend(self.in_env('codeinput',
486 self.env('lstlisting', cell.input)))
520 self.in_env('lstlisting', cell.input)))
487
521
488 outlines = []
522 outlines = []
489 for output in cell.outputs:
523 for output in cell.outputs:
490 conv_fn = self.dispatch(output.output_type)
524 conv_fn = self.dispatch(output.output_type)
491 outlines.extend(conv_fn(output))
525 outlines.extend(conv_fn(output))
492
526
493 # And then output of many possible types; use a frame for all of it.
527 # And then output of many possible types; use a frame for all of it.
494 if outlines:
528 if outlines:
495 lines.extend(self.env('codeoutput', outlines))
529 lines.extend(self.in_env('codeoutput', outlines))
496
530
497 lines.append(r'\end{codecell}')
531 lines.append(r'\end{codecell}')
498
532
499 return lines
533 return lines
500
534
501
535
502 @DocInherit
536 @DocInherit
503 def _img_lines(self, img_file):
537 def _img_lines(self, img_file):
504 return self.env('center',
538 return self.in_env('center',
505 [r'\includegraphics[width=3in]{%s}' % img_file, r'\par'])
539 [r'\includegraphics[width=3in]{%s}' % img_file, r'\par'])
506
540
507 def _svg_lines(self, img_file):
541 def _svg_lines(self, img_file):
508 base_file = os.path.splitext(img_file)[0]
542 base_file = os.path.splitext(img_file)[0]
509 pdf_file = base_file + '.pdf'
543 pdf_file = base_file + '.pdf'
510 subprocess.check_call(['inkscape', '--export-pdf=%s' % pdf_file,
544 subprocess.check_call(['inkscape', '--export-pdf=%s' % pdf_file,
511 img_file])
545 img_file])
512 return self._img_lines(pdf_file)
546 return self._img_lines(pdf_file)
513
547
514 @DocInherit
548 @DocInherit
515 def render_stream(self, output):
549 def render_stream(self, output):
516 lines = []
550 lines = []
517
551
518 if 'text' in output:
552 if 'text' in output:
519 lines.extend(self.env('verbatim', output.text.strip()))
553 lines.extend(self.in_env('verbatim', output.text.strip()))
520
554
521 return lines
555 return lines
522
556
523 @DocInherit
557 @DocInherit
524 def render_markdown(self, cell):
558 def render_markdown(self, cell):
525 return [markdown2latex(cell['source'])]
559 return [markdown2latex(cell['source'])]
526
560
527 @DocInherit
561 @DocInherit
528 def render_pyout(self, output):
562 def render_pyout(self, output):
529 lines = []
563 lines = []
530
564
531 # output is a dictionary like object with type as a key
565 # output is a dictionary like object with type as a key
532 if 'latex' in output:
566 if 'latex' in output:
533 lines.extend(output.latex)
567 lines.extend(output.latex)
534
568
535 if 'text' in output:
569 if 'text' in output:
536 lines.extend(self.env('verbatim', output.text))
570 lines.extend(self.in_env('verbatim', output.text))
537
571
538 return lines
572 return lines
539
573
540 @DocInherit
574 @DocInherit
541 def render_pyerr(self, output):
575 def render_pyerr(self, output):
542 # Note: a traceback is a *list* of frames.
576 # Note: a traceback is a *list* of frames.
543 return self.env('traceback',
577 return self.in_env('traceback',
544 self.env('verbatim',
578 self.in_env('verbatim',
545 remove_ansi('\n'.join(output.traceback))))
579 remove_ansi('\n'.join(output.traceback))))
546
580
547 @DocInherit
581 @DocInherit
548 def render_unknown(self, cell):
582 def render_raw(self, cell):
549 return self.env('verbatim', pprint.pformat(cell))
583 if self.raw_as_verbatim:
584 return self.in_env('verbatim', cell.source)
585 else:
586 return [cell.source]
587
588 @DocInherit
589 def _unknown_lines(self, data):
590 return [r'{\vspace{5mm}\bf WARNING:: unknown cell:}'] + \
591 self.in_env('verbatim', data)
550
592
551
593
552 def rst2simplehtml(infile):
594 def rst2simplehtml(infile):
553 """Convert a rst file to simplified html suitable for blogger.
595 """Convert a rst file to simplified html suitable for blogger.
554
596
555 This just runs rst2html with certain parameters to produce really simple
597 This just runs rst2html with certain parameters to produce really simple
556 html and strips the document header, so the resulting file can be easily
598 html and strips the document header, so the resulting file can be easily
557 pasted into a blogger edit window.
599 pasted into a blogger edit window.
558 """
600 """
559
601
560 # This is the template for the rst2html call that produces the cleanest,
602 # This is the template for the rst2html call that produces the cleanest,
561 # simplest html I could find. This should help in making it easier to
603 # simplest html I could find. This should help in making it easier to
562 # paste into the blogspot html window, though I'm still having problems
604 # paste into the blogspot html window, though I'm still having problems
563 # with linebreaks there...
605 # with linebreaks there...
564 cmd_template = ("rst2html --link-stylesheet --no-xml-declaration "
606 cmd_template = ("rst2html --link-stylesheet --no-xml-declaration "
565 "--no-generator --no-datestamp --no-source-link "
607 "--no-generator --no-datestamp --no-source-link "
566 "--no-toc-backlinks --no-section-numbering "
608 "--no-toc-backlinks --no-section-numbering "
567 "--strip-comments ")
609 "--strip-comments ")
568
610
569 cmd = "%s %s" % (cmd_template, infile)
611 cmd = "%s %s" % (cmd_template, infile)
570 proc = subprocess.Popen(cmd,
612 proc = subprocess.Popen(cmd,
571 stdout=subprocess.PIPE,
613 stdout=subprocess.PIPE,
572 stderr=subprocess.PIPE,
614 stderr=subprocess.PIPE,
573 shell=True)
615 shell=True)
574 html, stderr = proc.communicate()
616 html, stderr = proc.communicate()
575 if stderr:
617 if stderr:
576 raise IOError(stderr)
618 raise IOError(stderr)
577
619
578 # Make an iterator so breaking out holds state. Our implementation of
620 # Make an iterator so breaking out holds state. Our implementation of
579 # searching for the html body below is basically a trivial little state
621 # searching for the html body below is basically a trivial little state
580 # machine, so we need this.
622 # machine, so we need this.
581 walker = iter(html.splitlines())
623 walker = iter(html.splitlines())
582
624
583 # Find start of main text, break out to then print until we find end /div.
625 # Find start of main text, break out to then print until we find end /div.
584 # This may only work if there's a real title defined so we get a 'div class'
626 # This may only work if there's a real title defined so we get a 'div class'
585 # tag, I haven't really tried.
627 # tag, I haven't really tried.
586 for line in walker:
628 for line in walker:
587 if line.startswith('<body>'):
629 if line.startswith('<body>'):
588 break
630 break
589
631
590 newfname = os.path.splitext(infile)[0] + '.html'
632 newfname = os.path.splitext(infile)[0] + '.html'
591 with open(newfname, 'w') as f:
633 with open(newfname, 'w') as f:
592 for line in walker:
634 for line in walker:
593 if line.startswith('</body>'):
635 if line.startswith('</body>'):
594 break
636 break
595 f.write(line)
637 f.write(line)
596 f.write('\n')
638 f.write('\n')
597
639
598 return newfname
640 return newfname
599
641
600 known_formats = "rst (default), html, quick-html, latex"
642 known_formats = "rst (default), html, quick-html, latex"
601
643
602 def main(infile, format='rst'):
644 def main(infile, format='rst'):
603 """Convert a notebook to html in one step"""
645 """Convert a notebook to html in one step"""
604 # XXX: this is just quick and dirty for now. When adding a new format,
646 # XXX: this is just quick and dirty for now. When adding a new format,
605 # make sure to add it to the `known_formats` string above, which gets
647 # make sure to add it to the `known_formats` string above, which gets
606 # printed in in the catch-all else, as well as in the help
648 # printed in in the catch-all else, as well as in the help
607 if format == 'rst':
649 if format == 'rst':
608 converter = ConverterRST(infile)
650 converter = ConverterRST(infile)
609 converter.render()
651 converter.render()
610 elif format == 'html':
652 elif format == 'html':
611 #Currently, conversion to html is a 2 step process, nb->rst->html
653 #Currently, conversion to html is a 2 step process, nb->rst->html
612 converter = ConverterRST(infile)
654 converter = ConverterRST(infile)
613 rstfname = converter.render()
655 rstfname = converter.render()
614 rst2simplehtml(rstfname)
656 rst2simplehtml(rstfname)
615 elif format == 'quick-html':
657 elif format == 'quick-html':
616 converter = ConverterQuickHTML(infile)
658 converter = ConverterQuickHTML(infile)
617 rstfname = converter.render()
659 rstfname = converter.render()
618 elif format == 'latex':
660 elif format == 'latex':
619 converter = ConverterLaTeX(infile)
661 converter = ConverterLaTeX(infile)
620 latexfname = converter.render()
662 latexfname = converter.render()
621 else:
663 else:
622 raise SystemExit("Unknown format '%s', " % format +
664 raise SystemExit("Unknown format '%s', " % format +
623 "known formats are: " + known_formats)
665 "known formats are: " + known_formats)
624
666
625
667
626
668
627 if __name__ == '__main__':
669 if __name__ == '__main__':
628 parser = argparse.ArgumentParser(description=__doc__,
670 parser = argparse.ArgumentParser(description=__doc__,
629 formatter_class=argparse.RawTextHelpFormatter)
671 formatter_class=argparse.RawTextHelpFormatter)
630 # TODO: consider passing file like object around, rather than filenames
672 # TODO: consider passing file like object around, rather than filenames
631 # would allow us to process stdin, or even http streams
673 # would allow us to process stdin, or even http streams
632 #parser.add_argument('infile', nargs='?', type=argparse.FileType('r'), default=sys.stdin)
674 #parser.add_argument('infile', nargs='?', type=argparse.FileType('r'), default=sys.stdin)
633
675
634 #Require a filename as a positional argument
676 #Require a filename as a positional argument
635 parser.add_argument('infile', nargs=1)
677 parser.add_argument('infile', nargs=1)
636 parser.add_argument('-f', '--format', default='rst',
678 parser.add_argument('-f', '--format', default='rst',
637 help='Output format. Supported formats: \n' +
679 help='Output format. Supported formats: \n' +
638 known_formats)
680 known_formats)
639 args = parser.parse_args()
681 args = parser.parse_args()
640 main(infile=args.infile[0], format=args.format)
682 main(infile=args.infile[0], format=args.format)
@@ -1,159 +1,210 b''
1 {
1 {
2 "metadata": {
2 "metadata": {
3 "name": "test"
3 "name": "test"
4 },
4 },
5 "nbformat": 3,
5 "nbformat": 3,
6 "worksheets": [
6 "worksheets": [
7 {
7 {
8 "cells": [
8 "cells": [
9 {
9 {
10 "cell_type": "heading",
10 "cell_type": "heading",
11 "level": 1,
11 "level": 1,
12 "source": [
12 "source": [
13 "H1"
13 "H1"
14 ]
14 ]
15 },
15 },
16 {
16 {
17 "cell_type": "heading",
17 "cell_type": "heading",
18 "level": 2,
18 "level": 2,
19 "source": [
19 "source": [
20 "H2"
20 "H2"
21 ]
21 ]
22 },
22 },
23 {
23 {
24 "cell_type": "heading",
24 "cell_type": "heading",
25 "level": 3,
25 "level": 3,
26 "source": [
26 "source": [
27 "H3"
27 "H3"
28 ]
28 ]
29 },
29 },
30 {
30 {
31 "cell_type": "heading",
31 "cell_type": "heading",
32 "level": 4,
32 "level": 4,
33 "source": [
33 "source": [
34 "H4"
34 "H4"
35 ]
35 ]
36 },
36 },
37 {
37 {
38 "cell_type": "heading",
38 "cell_type": "heading",
39 "level": 5,
39 "level": 5,
40 "source": [
40 "source": [
41 "H5"
41 "H5"
42 ]
42 ]
43 },
43 },
44 {
44 {
45 "cell_type": "heading",
45 "cell_type": "heading",
46 "level": 6,
46 "level": 6,
47 "source": [
47 "source": [
48 "H6"
48 "H6"
49 ]
49 ]
50 },
50 },
51 {
51 {
52 "cell_type": "markdown",
52 "cell_type": "markdown",
53 "source": [
53 "source": [
54 "A section heading",
55 "=================",
56 "",
57 "A bit of text, with *important things*:",
54 "A bit of text, with *important things*:",
58 "",
55 "",
59 "* and",
56 "* and",
60 "* more",
57 "* more that **are boldface**, as well as `verbatim`.",
61 "",
58 "",
62 "Using reST links to `ipython <http://ipython.org>`_."
59 "Using markdown hyperlinks for [ipython](http://ipython.org)."
63 ]
60 ]
64 },
61 },
65 {
62 {
66 "cell_type": "code",
63 "cell_type": "code",
67 "collapsed": false,
64 "collapsed": false,
68 "input": [
65 "input": [
69 "f = figure()",
66 "f = figure()",
70 "plot([1])",
67 "plot([1,2,3])",
71 "display(f)"
68 "display(f)"
72 ],
69 ],
73 "language": "python",
70 "language": "python",
74 "outputs": [
71 "outputs": [
75 {
72 {
76 "output_type": "display_data",
73 "output_type": "display_data",
77 "png": "iVBORw0KGgoAAAANSUhEUgAAAYAAAAD3CAYAAAAUl4NyAAAABHNCSVQICAgIfAhki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5nmzZtaNWqFS1atCA+Pp7MzEwqKiqa\nulS/oHvTfXRf1l9lZSUTJkxgypQp3HXXXVe8Xt/7022NvV27dgDs3r2bgoICduzYQUxMzBXF6bn3\nuqnL9Tx58uTlv8WTk5OJiIigZcuWTV6rP9C96T66L+vHsizi4+MJDw9n9uzZVz2mvvenW+exr1ix\ngoSEBCorK5k5cyYdO3ZkzZo1gJ57b4jaruf69etZvXo1zZs3JyIigmXLltlcsffSdzLcp7Zrqfuy\nflJTU0lMTCQiIoLIyEgAli5dSmFhIdCw+zPI0sfXIiJ+xSv2PBUREfdRYxcR8TNq7CIifkaNXUTE\nz6ixi4j4GTV2ERE/8/9mUozJaDh2nQAAAABJRU5ErkJggg==\n",
78 "text": [
75 "text": [
79 "<matplotlib.figure.Figure at 0x28f2750>"
76 "<matplotlib.figure.Figure at 0x981bccc>"
80 ]
77 ]
81 },
78 },
82 {
79 {
83 "output_type": "display_data",
80 "output_type": "display_data",
84 "png": "iVBORw0KGgoAAAANSUhEUgAAAYAAAAD3CAYAAAAUl4NyAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAFyVJREFUeJzt3H9M1Pcdx/HXGTK1XWNloG7xN1Lh1Baq46RDPRv8kTL2\no2qUJbX+Si5mKlqJm6aLsqQah/NHiamki0ushcbEP+b8OYg5YIveSaqTCc6IkMkyO8GJWqGe+tkf\nppdS9BDvTpTP85GY3Pc+3x/vd77t93X3+d4XhzHGCABgnV7dXQAAoHsQAABgKQIAACxFAACApQgA\nALAUAQAAlgoZAIsWLdLAgQM1bty4R66zdu1ajRw5UuPHj9f58+eD73/55Zd699139corr8jpdOrk\nyZORqxoAELaQAbBw4UIdPXr0keN+v1+VlZWqqqpSXl6e8vLygmPr16/X0KFDdfbsWZ09e1bJycmR\nqxoAEDZHZw+CNTQ0KDs7W9XV1R3GCgsLde/ePa1cuVKSlJCQoLq6OklSSkqKTpw4ob59+0ahbABA\nuGLC2djv9+udd94JLsfHx+vS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3759rV69elkrV668\n6jHz58+3evbsaQ0cONDKzc115+n9Tm3Xc9euXVbbtm0th8NhORwOa8mSJTZU6RumTp1q3XjjjVZ4\nePg1j9G9WTe1XUvdl/VTWFhoxcXFWf3797diY2OtdevWXfW4+tyfbm3sDofDSklJsQoKCqw+ffpY\nJSUlNV5PT0+3hg4dapWVlVlJSUnWuHHj3Hl6v1Pb9dy1a5c1fvx4m6rzLbt377b2799/zWake7Pu\naruWui/rp7i42MrOzrYsy7JKSkqsnj17WmfPnq1xTH3vT7cNATtz5gwAt99+O927d2f06NGkp6fX\nOKa+z70HsrpcT9CH0nXl7u9kBLLariXovqyP4OBgHA4HAB07diQsLIysrKwax9T3/nRbY8/MzKRv\n376Xf9+/f3/27dtX45j6PvceyOpyPYOCgkhLS8PhcDB37lxdy0bQvek+ui8bLi8vj5ycHKK/t1Vc\nfe/PJh3ba9XzuXdxbeDAgRQVFZGZmUn//v2ZNWuW3SX5LN2b7qP7smHOnTvHpEmTWL58Oa1bt67x\nWn3vT7c19ttuu63GELCcnBwGDx5c45jvnnv/jqvn3gNdXa5nmzZtaNWqFS1atCA+Pp7MzEwqKiqa\nulS/oHvTfXRf1l9lZSUTJkxgypQp3HXXXVe8Xt/7022NvV27dgDs3r2bgoICduzYQUxMzBXF6bn3\nuqnL9Tx58uTlv8WTk5OJiIigZcuWTV6rP9C96T66L+vHsizi4+MJDw9n9uzZVz2mvvenW+exr1ix\ngoSEBCorK5k5cyYdO3ZkzZo1gJ57b4jaruf69etZvXo1zZs3JyIigmXLltlcsffSdzLcp7Zrqfuy\nflJTU0lMTCQiIoLIyEgAli5dSmFhIdCw+zPI0sfXIiJ+xSv2PBUREfdRYxcR8TNq7CIifkaNXUTE\nz6ixi4j4GTV2ERE/8/9mUozJaDh2nQAAAABJRU5ErkJggg==\n"
85 }
82 }
86 ],
83 ],
87 "prompt_number": 1
84 "prompt_number": 1
88 },
85 },
89 {
86 {
90 "cell_type": "code",
87 "cell_type": "code",
91 "collapsed": true,
88 "collapsed": true,
92 "input": [
89 "input": [
93 "# multiline input",
90 "# multiline input",
94 "x = 1",
91 "x = 1",
95 "y = 2"
92 "y = 2"
96 ],
93 ],
97 "language": "python",
94 "language": "python",
98 "outputs": [],
95 "outputs": [],
99 "prompt_number": 2
96 "prompt_number": 2
100 },
97 },
101 {
98 {
102 "cell_type": "code",
99 "cell_type": "code",
103 "collapsed": false,
100 "collapsed": false,
104 "input": [
101 "input": [
105 "1+2"
102 "1+2"
106 ],
103 ],
107 "language": "python",
104 "language": "python",
108 "outputs": [
105 "outputs": [
109 {
106 {
110 "output_type": "pyout",
107 "output_type": "pyout",
111 "prompt_number": 3,
108 "prompt_number": 3,
112 "text": [
109 "text": [
113 "3"
110 "3"
114 ]
111 ]
115 }
112 }
116 ],
113 ],
117 "prompt_number": 3
114 "prompt_number": 3
118 },
115 },
119 {
116 {
120 "cell_type": "code",
117 "cell_type": "code",
121 "collapsed": false,
118 "collapsed": false,
122 "input": [
119 "input": [
123 "print 'hello world'"
120 "print 'hello world'"
124 ],
121 ],
125 "language": "python",
122 "language": "python",
126 "outputs": [
123 "outputs": [
127 {
124 {
128 "output_type": "stream",
125 "output_type": "stream",
129 "stream": "stdout",
126 "stream": "stdout",
130 "text": [
127 "text": [
131 "hello world"
128 "hello world",
129 ""
132 ]
130 ]
133 }
131 }
134 ],
132 ],
135 "prompt_number": 4
133 "prompt_number": 4
136 },
134 },
137 {
135 {
138 "cell_type": "markdown",
136 "cell_type": "markdown",
139 "source": [
137 "source": [
140 "$e^{i\\pi} + 1 = 0$"
138 "$e^{i\\pi} + 1 = 0$"
141 ]
139 ]
142 },
140 },
143 {
141 {
144 "cell_type": "plaintext",
142 "cell_type": "raw",
145 "source": [
143 "source": [
146 "plain text"
144 "plain text"
147 ]
145 ]
148 },
146 },
149 {
147 {
150 "cell_type": "code",
148 "cell_type": "code",
151 "collapsed": true,
149 "collapsed": false,
152 "input": [],
150 "input": [
151 "import sys",
152 "m = 'A message'",
153 "print m, 'to stdout'",
154 "print >> sys.stderr, m, 'to stderr'",
155 "m"
156 ],
153 "language": "python",
157 "language": "python",
154 "outputs": []
158 "outputs": [
159 {
160 "output_type": "stream",
161 "stream": "stdout",
162 "text": [
163 "A message to stdout",
164 ""
165 ]
166 },
167 {
168 "output_type": "stream",
169 "stream": "stderr",
170 "text": [
171 "A message to stderr",
172 ""
173 ]
174 },
175 {
176 "output_type": "pyout",
177 "prompt_number": 5,
178 "text": [
179 "'A message'"
180 ]
181 }
182 ],
183 "prompt_number": 5
184 },
185 {
186 "cell_type": "code",
187 "collapsed": false,
188 "input": [
189 "# a traceback",
190 "1/0"
191 ],
192 "language": "python",
193 "outputs": [
194 {
195 "ename": "ZeroDivisionError",
196 "evalue": "integer division or modulo by zero",
197 "output_type": "pyerr",
198 "traceback": [
199 "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m\n\u001b[1;31mZeroDivisionError\u001b[0m Traceback (most recent call last)",
200 "\u001b[1;32m/home/fperez/ipython/nbconvert/tests/<ipython-input-6-03412a6702b7>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m()\u001b[0m\n\u001b[0;32m 1\u001b[0m \u001b[1;31m# a traceback\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m----> 2\u001b[1;33m \u001b[1;36m1\u001b[0m\u001b[1;33m/\u001b[0m\u001b[1;36m0\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",
201 "\u001b[1;31mZeroDivisionError\u001b[0m: integer division or modulo by zero"
202 ]
203 }
204 ],
205 "prompt_number": 6
155 }
206 }
156 ]
207 ]
157 }
208 }
158 ]
209 ]
159 } No newline at end of file
210 }
General Comments 0
You need to be logged in to leave comments. Login now