Show More
@@ -149,6 +149,9 b' class DisplayFormatter(Configurable):' | |||
|
149 | 149 | format_dict = {} |
|
150 | 150 | md_dict = {} |
|
151 | 151 | |
|
152 | # If _ipython_display_ is defined, use that to display this object. If | |
|
153 | # it returns NotImplemented, use the _repr_ logic (default). | |
|
154 | if not hasattr(obj, '_ipython_display_') or obj._ipython_display_(**kwargs) == NotImplemented: | |
|
152 | 155 | for format_type, formatter in self.formatters.items(): |
|
153 | 156 | if include and format_type not in include: |
|
154 | 157 | continue |
General Comments 0
You need to be logged in to leave comments.
Login now