Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch DynamicMap hashing over to Panel cache implementation #6129

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
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