Skip to content

Commit

Permalink
Workaround TypeError for non-string json keys (#2465)
Browse files Browse the repository at this point in the history
  • Loading branch information
Liam-Deacon committed Jun 30, 2021
1 parent fbb52a9 commit 6967e9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion panel/pane/plotly.py
Expand Up @@ -98,7 +98,7 @@ def _get_sources(json):
@staticmethod
def _get_sources_for_trace(json, data, parent_path=''):
for key, value in list(json.items()):
full_path = key if not parent_path else (parent_path + '.' + key)
full_path = key if not parent_path else "{}.{}".format(parent_path, key)
if isinstance(value, np.ndarray):
# Extract numpy array
data[full_path] = [json.pop(key)]
Expand Down

0 comments on commit 6967e9e

Please sign in to comment.