Show More
@@ -35,21 +35,6 b' from IPython.utils.py3compat import (' | |||||
35 |
|
35 | |||
36 | class DisplayFormatter(Configurable): |
|
36 | class DisplayFormatter(Configurable): | |
37 |
|
37 | |||
38 | # When set to true only the default plain text formatter will be used. |
|
|||
39 | plain_text_only = Bool(False).tag(config=True) |
|
|||
40 | def _plain_text_only_changed(self, name, old, new): |
|
|||
41 | warnings.warn("""DisplayFormatter.plain_text_only is deprecated. |
|
|||
42 |
|
||||
43 | It will be removed in IPython 5.0 |
|
|||
44 |
|
||||
45 | Use DisplayFormatter.active_types = ['text/plain'] |
|
|||
46 | for the same effect. |
|
|||
47 | """, DeprecationWarning) |
|
|||
48 | if new: |
|
|||
49 | self.active_types = ['text/plain'] |
|
|||
50 | else: |
|
|||
51 | self.active_types = self.format_types |
|
|||
52 |
|
||||
53 | active_types = List(Unicode(), |
|
38 | active_types = List(Unicode(), | |
54 | help="""List of currently active mime-types to display. |
|
39 | help="""List of currently active mime-types to display. | |
55 | You can use this to set a white-list for formats to display. |
|
40 | You can use this to set a white-list for formats to display. |
General Comments 0
You need to be logged in to leave comments.
Login now