##// END OF EJS Templates
Backport PR #7106: Changed the display order of rich output in nbconvert html...
Min RK -
Show More
@@ -1,40 +1,40 b''
1 """Global configuration class."""
1 """Global configuration class."""
2 #-----------------------------------------------------------------------------
2 #-----------------------------------------------------------------------------
3 # Copyright (c) 2013, the IPython Development Team.
3 # Copyright (c) 2013, the IPython Development Team.
4 #
4 #
5 # Distributed under the terms of the Modified BSD License.
5 # Distributed under the terms of the Modified BSD License.
6 #
6 #
7 # The full license is in the file COPYING.txt, distributed with this software.
7 # The full license is in the file COPYING.txt, distributed with this software.
8 #-----------------------------------------------------------------------------
8 #-----------------------------------------------------------------------------
9
9
10 #-----------------------------------------------------------------------------
10 #-----------------------------------------------------------------------------
11 # Imports
11 # Imports
12 #-----------------------------------------------------------------------------
12 #-----------------------------------------------------------------------------
13
13
14 from IPython.utils.traitlets import List
14 from IPython.utils.traitlets import List
15 from IPython.config.configurable import LoggingConfigurable
15 from IPython.config.configurable import LoggingConfigurable
16 from IPython.utils.traitlets import Unicode
16 from IPython.utils.traitlets import Unicode
17
17
18 #-----------------------------------------------------------------------------
18 #-----------------------------------------------------------------------------
19 # Classes and functions
19 # Classes and functions
20 #-----------------------------------------------------------------------------
20 #-----------------------------------------------------------------------------
21
21
22 class NbConvertBase(LoggingConfigurable):
22 class NbConvertBase(LoggingConfigurable):
23 """Global configurable class for shared config
23 """Global configurable class for shared config
24
24
25 Useful for display data priority that might be use by many transformers
25 Useful for display data priority that might be use by many transformers
26 """
26 """
27
27
28 display_data_priority = List(['html', 'application/pdf', 'svg', 'latex', 'png', 'jpg', 'jpeg' , 'text'],
28 display_data_priority = List(['html', 'application/pdf', 'latex', 'svg', 'png', 'jpg', 'jpeg', 'text'],
29 config=True,
29 config=True,
30 help= """
30 help= """
31 An ordered list of preferred output type, the first
31 An ordered list of preferred output type, the first
32 encountered will usually be used when converting discarding
32 encountered will usually be used when converting discarding
33 the others.
33 the others.
34 """
34 """
35 )
35 )
36
36
37 default_language = Unicode('ipython', config=True, help='default highlight language')
37 default_language = Unicode('ipython', config=True, help='default highlight language')
38
38
39 def __init__(self, **kw):
39 def __init__(self, **kw):
40 super(NbConvertBase, self).__init__(**kw)
40 super(NbConvertBase, self).__init__(**kw)
General Comments 0
You need to be logged in to leave comments. Login now