Black Lives Matter. Please consider donating to Black Girls Code today.
Dash HoloViews is now available! Check out the docs.

Representing dictionary in table experiements

Hi I have a dictionary I want to display in a cell of a table experiment, something that looks like this:

{“name1”: 1, “name2”: 0.5, “name3”: 0.7}

The cells themselves are not big enough to display. I was wondering if there’s an user friendly way to show it. I can use json.dumps to change that into a text but ideally I want to only display it when I click on the cell to expand into multiple lines like this:

“name1”: 1
“name2”: 0.5
“name3”: 0.7

Much appreciated any help.