From b24ae90d16962421fa605b24cabbe5f322bc298e 2014-01-16 10:55:58 From: Jonathan Frederic Date: 2014-01-16 10:55:58 Subject: [PATCH] Removed hook for displayout widgets --- diff --git a/IPython/core/displayhook.py b/IPython/core/displayhook.py index f228ffe..0ecfb3b 100644 --- a/IPython/core/displayhook.py +++ b/IPython/core/displayhook.py @@ -241,16 +241,13 @@ class DisplayHook(Configurable): """ self.check_for_underscore() if result is not None and not self.quiet(): - if hasattr(result, '_repr_widget_'): - result._repr_widget_() - else: - self.start_displayhook() - self.write_output_prompt() - format_dict, md_dict = self.compute_format_data(result) - self.write_format_data(format_dict, md_dict) - self.update_user_ns(result) - self.log_output(format_dict) - self.finish_displayhook() + self.start_displayhook() + self.write_output_prompt() + format_dict, md_dict = self.compute_format_data(result) + self.write_format_data(format_dict, md_dict) + self.update_user_ns(result) + self.log_output(format_dict) + self.finish_displayhook() def flush(self): if not self.do_full_cache: