Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/nbconvert/writers/stdout.py: 71%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

7 statements  

1""" 

2Contains Stdout writer 

3""" 

4 

5# Copyright (c) Jupyter Development Team. 

6# Distributed under the terms of the Modified BSD License. 

7 

8from nbconvert.utils import io 

9 

10from .base import WriterBase 

11 

12 

13class StdoutWriter(WriterBase): 

14 """Consumes output from nbconvert export...() methods and writes to the 

15 stdout stream.""" 

16 

17 def write(self, output, resources, **kw): 

18 """ 

19 Consume and write Jinja output. 

20 

21 See base for more... 

22 """ 

23 stream = io.unicode_std_stream() 

24 stream.write(output)