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

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

5 statements  

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"