Show More
@@ -1,37 +1,35 b'' | |||
|
1 | 1 | #!/usr/bin/env python |
|
2 | 2 | """ |
|
3 | 3 | Contains Stdout writer |
|
4 | 4 | """ |
|
5 | 5 | #----------------------------------------------------------------------------- |
|
6 | 6 | #Copyright (c) 2013, the IPython Development Team. |
|
7 | 7 | # |
|
8 | 8 | #Distributed under the terms of the Modified BSD License. |
|
9 | 9 | # |
|
10 | 10 | #The full license is in the file COPYING.txt, distributed with this software. |
|
11 | 11 | #----------------------------------------------------------------------------- |
|
12 | 12 | |
|
13 | 13 | #----------------------------------------------------------------------------- |
|
14 | 14 | # Imports |
|
15 | 15 | #----------------------------------------------------------------------------- |
|
16 | 16 | |
|
17 | 17 | from .base import WriterBase |
|
18 | 18 | |
|
19 | 19 | #----------------------------------------------------------------------------- |
|
20 | 20 | # Classes |
|
21 | 21 | #----------------------------------------------------------------------------- |
|
22 | 22 | |
|
23 | 23 | class StdoutWriter(WriterBase): |
|
24 | 24 | """Consumes output from nbconvert export...() methods and writes to the |
|
25 | stdout stream. Allows for quick debuging of nbconvert output. Using the | |
|
26 | debug flag makes the writer pretty-print the figures contained within the | |
|
27 | notebook.""" | |
|
25 | stdout stream.""" | |
|
28 | 26 | |
|
29 | 27 | |
|
30 | 28 | def write(self, output, resources, **kw): |
|
31 | 29 | """ |
|
32 | 30 | Consume and write Jinja output. |
|
33 | 31 | |
|
34 | 32 | See base for more... |
|
35 | 33 | """ |
|
36 | 34 | |
|
37 | 35 | print(output) |
General Comments 0
You need to be logged in to leave comments.
Login now