Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion holoviews/core/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,12 @@ def deephash(obj):
Given an object, return a hash using HashableJSON. This hash is not
architecture, Python version or platform independent.
"""
from panel.io.cache import _generate_hash

try:
return hash(json.dumps(obj, cls=HashableJSON, sort_keys=True))
hasher = hashlib.new("md5")
hasher.update(_generate_hash(obj))
return hasher.hexdigest()
except Exception:
return None

Expand Down
Loading