'Write the format data dict to the frontend.
This default version of this method simply writes the plain text
representation of the object to ``sys.stdout``. Subclasses should
override this method to send the entire `format_dict` to the
frontends.
Parameters
format_dict : dict
The format dict for the object passed to `sys.displayhook`.
md_dict : dict (optional)
The metadata dict to be associated with the display data.'

def write_format_data(self, format_dict, md_dict=None):

    if ('text/plain' not in format_dict):
        return
    result_repr = format_dict['text/plain']
    if ('\n' in result_repr):
        if (not self.prompt_end_newline):
            result_repr = ('\n' + result_repr)
    print result_repr
