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

5 statements  

« prev     ^ index     » next       coverage.py v7.2.7, created at 2023-07-01 06:54 +0000

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 io.unicode_std_stream().write(output)