def record(name, value):
"""
Records the value as part of the executing cell's output to be retrieved
during inspection.
Args:
name (str): Name of the value
value: The value to record.
"""
# IPython.display.display takes a tuple of objects as first parameter
# `http://ipython.readthedocs.io/en/stable/api/generated/IPython.display.html#IPython.display.display`
ip_display(({RECORD_OUTPUT_TYPE: {name: value}},), raw=True)
评论列表
文章目录