Show More
@@ -1,29 +1,29 b'' | |||||
1 | """Global configuration class.""" |
|
1 | """Global configuration class.""" | |
2 |
|
2 | |||
3 | # Copyright (c) IPython Development Team. |
|
3 | # Copyright (c) IPython Development Team. | |
4 | # Distributed under the terms of the Modified BSD License. |
|
4 | # Distributed under the terms of the Modified BSD License. | |
5 |
|
5 | |||
6 | from IPython.utils.traitlets import List |
|
6 | from IPython.utils.traitlets import List | |
7 | from IPython.config.configurable import LoggingConfigurable |
|
7 | from IPython.config.configurable import LoggingConfigurable | |
8 | from IPython.utils.traitlets import Unicode |
|
8 | from IPython.utils.traitlets import Unicode | |
9 |
|
9 | |||
10 | class NbConvertBase(LoggingConfigurable): |
|
10 | class NbConvertBase(LoggingConfigurable): | |
11 | """Global configurable class for shared config |
|
11 | """Global configurable class for shared config | |
12 |
|
12 | |||
13 | Useful for display data priority that might be use by many transformers |
|
13 | Useful for display data priority that might be use by many transformers | |
14 | """ |
|
14 | """ | |
15 |
|
15 | |||
16 |
display_data_priority = List(['text/html', 'application/pdf', ' |
|
16 | display_data_priority = List(['text/html', 'application/pdf', 'text/latex', 'image/svg+xml', 'image/png', 'image/jpeg', 'text/plain'], | |
17 | config=True, |
|
17 | config=True, | |
18 | help= """ |
|
18 | help= """ | |
19 | An ordered list of preferred output type, the first |
|
19 | An ordered list of preferred output type, the first | |
20 | encountered will usually be used when converting discarding |
|
20 | encountered will usually be used when converting discarding | |
21 | the others. |
|
21 | the others. | |
22 | """ |
|
22 | """ | |
23 | ) |
|
23 | ) | |
24 |
|
24 | |||
25 | default_language = Unicode('ipython', config=True, |
|
25 | default_language = Unicode('ipython', config=True, | |
26 | help='DEPRECATED default highlight language, please use language_info metadata instead') |
|
26 | help='DEPRECATED default highlight language, please use language_info metadata instead') | |
27 |
|
27 | |||
28 | def __init__(self, **kw): |
|
28 | def __init__(self, **kw): | |
29 | super(NbConvertBase, self).__init__(**kw) |
|
29 | super(NbConvertBase, self).__init__(**kw) |
General Comments 0
You need to be logged in to leave comments.
Login now