Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/nbconvert/exporters/qtpng.py: 100%

4 statements  

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

1"""Export to PNG via a headless browser""" 

2 

3# Copyright (c) IPython Development Team. 

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

5 

6from .qt_exporter import QtExporter 

7 

8 

9class QtPNGExporter(QtExporter): 

10 """Writer designed to write to PNG files. 

11 

12 This inherits from :class:`HTMLExporter`. It creates the HTML using the 

13 template machinery, and then uses pyqtwebengine to create a png. 

14 """ 

15 

16 export_from_notebook = "PNG via HTML" 

17 format = "png" # noqa