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

5 statements  

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

1"""Global configuration class.""" 

2 

3# Copyright (c) Jupyter Development Team. 

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

5 

6from traitlets import List, Unicode 

7from traitlets.config.configurable import LoggingConfigurable 

8 

9 

10class NbConvertBase(LoggingConfigurable): 

11 """Global configurable class for shared config 

12 

13 Useful for display data priority that might be used by many transformers 

14 """ 

15 

16 display_data_priority = List( 

17 [ 

18 "text/html", 

19 "application/pdf", 

20 "text/latex", 

21 "image/svg+xml", 

22 "image/png", 

23 "image/jpeg", 

24 "text/markdown", 

25 "text/plain", 

26 ], 

27 help=""" 

28 An ordered list of preferred output type, the first 

29 encountered will usually be used when converting discarding 

30 the others. 

31 """, 

32 ).tag(config=True) 

33 

34 default_language = Unicode( 

35 "ipython", 

36 help="Deprecated default highlight language as of 5.0, please use language_info metadata instead", 

37 ).tag(config=True)