Highlight in 1 line of code using JSONShower

JSONShower supports highlighting in 1 line of code on your documents!

from jsonshower import show_json

# This is in the same format as search results
documents = [
        "key": "This is awesome",
        "value": "awesome",
        "key": "Relevance AI",
        "value": "AI",

    highlight_fields={"key": ["value"]},    # Fields to highlight
    max_l_dist=0,                                               # Parameter for adjusting length of fuzzy matching in backend

After running this, you should see the following in your Jupyter Notebook:

Highlight OutputHighlight Output

Highlight Output

Did this page help you?