display proceeds to publish it using publish_mimebundle.
prepare_mimebundle returns it (see Value for details)
display(obj)
prepare_mimebundle(obj, mimetypes = getOption("jupyter.display_mimetypes"), metadata = NULL, error_handler = stop)prepare_mimebundle returns a list with items corresponding to the parameters of publish_mimebundle (data and metadata)
publish_mimebundle