##// END OF EJS Templates
Fixed output to match other print statements
Jonathan Frederic -
Show More
@@ -1,42 +1,42 b''
1 1 """
2 2 Contains debug writer.
3 3 """
4 4 #-----------------------------------------------------------------------------
5 5 #Copyright (c) 2013, the IPython Development Team.
6 6 #
7 7 #Distributed under the terms of the Modified BSD License.
8 8 #
9 9 #The full license is in the file COPYING.txt, distributed with this software.
10 10 #-----------------------------------------------------------------------------
11 11
12 12 #-----------------------------------------------------------------------------
13 13 # Imports
14 14 #-----------------------------------------------------------------------------
15 15
16 16 from .base import WriterBase
17 17 from pprint import pprint
18 18
19 19 #-----------------------------------------------------------------------------
20 20 # Classes
21 21 #-----------------------------------------------------------------------------
22 22
23 23 class DebugWriter(WriterBase):
24 24 """Consumes output from nbconvert export...() methods and writes usefull
25 25 debugging information to the stdout. The information includes a list of
26 26 resources that were extracted from the notebook(s) during export."""
27 27
28 28
29 29 def write(self, output, resources, notebook_name='notebook', **kw):
30 30 """
31 31 Consume and write Jinja output.
32 32
33 33 See base for more...
34 34 """
35 35
36 36 if 'outputs' in resources:
37 37 print("outputs extracted from %s" % notebook_name)
38 38 print('-' * 80)
39 39 pprint(resources['outputs'], indent=2, width=70)
40 40 else:
41 print("No outputs extracted from %s" % notebook_name)
41 print("no outputs extracted from %s" % notebook_name)
42 42 print('=' * 80)
General Comments 0
You need to be logged in to leave comments. Login now