def display(name, obj):
"""
Displays an object with the reference 'name'.
Args:
name (str): Name of the output.
obj: An object that can be displayed in the notebook.
"""
data, metadata = IPython.core.formatters.format_display_data(obj)
metadata['papermill'] = dict(name=name)
ip_display(data, metadata=metadata, raw=True)
评论列表
文章目录