The following may be related, I encountered it doing some administration in our notebooks (sagenb). The following happens in both Sage 7.4 and 7.5 (it executes the orders but the warning may suggest some issue in the relationship of sagenb and ipython). No warning in 7.3
sage: import sys
sage: 1+1
2
sage: import sagenb.notebook.notebook
sage: 1+1
2
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-4-4cc2ceee564b> in <module>()
----> 1 Integer(1)+Integer(1)
/usr/local/sage-7.4/local/lib/python2.7/site-packages/IPython/core/displayhook.pyc
in __call__(self, result)
244 self.start_displayhook()
245 self.write_output_prompt()
--> 246 format_dict, md_dict = self.compute_format_data(result)
247 self.update_user_ns(result)
248 self.fill_exec_result(result)
/usr/local/sage-7.4/local/lib/python2.7/site-packages/IPython/core/displayhook.pyc
in compute_format_data(self, result)
148
149 """
--> 150 return self.shell.display_formatter.format(result)
151
152 # This can be set to True by the write_output_prompt method
in a subclass
/usr/local/sage-7.4/local/lib/python2.7/site-packages/sage/repl/display/formatter.pyc
in format(self, obj, include, exclude)
158 # First, use Sage rich output if there is any
159 PLAIN_TEXT = u'text/plain'
--> 160 sage_format, sage_metadata = self.dm.displayhook(obj)
161 assert PLAIN_TEXT in sage_format, 'plain text is always
present'
162 if sage_format.keys() != [PLAIN_TEXT]:
TypeError: 'NoneType' object is not iterable