Skip to main content

Visualize Results

from IPython.display import Markdown, display

def visualize(item, source):
display(Markdown(item))

def show(results, output_key, get_original_callable=None):
for result in results:
source = None
if '_source' in result:

source = get_original_callable(result['_source'])
visualize(result[output_key], source)