Coverage for pyquickhelper/helpgen/_nbconvert_config.py: 0%

5 statements  

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

1# pylint: disable=E0601 

2""" 

3@file 

4@brief Custom preprocessor, 

5see `custom_preprocessor <https://github.com/jupyter/nbconvert-examples/blob/master/custom_preprocessor/>`_ 

6""" 

7 

8# -- HELP BEGIN EXCLUDE -- 

9 

10try: 

11 if c is None: 

12 pass 

13except NameError: 

14 try: # pragma: no cover 

15 c = get_config() # pylint: disable=E0601 

16 except (ImportError, NameError) as e: # pragma: no cover 

17 from traitlets.config import get_config 

18 c = get_config() 

19c.Exporter.preprocessors = [ 

20 '_nbconvert_preprocessor.LatexRawOutputPreprocessor'] # pragma: no cover 

21 

22# -- HELP END EXCLUDE --