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

Combined thumbnails crash when descriptions are not provided #8

Closed
venkatesh-sivaraman opened this issue Nov 23, 2021 · 0 comments · Fixed by #9
Closed

Combined thumbnails crash when descriptions are not provided #8

venkatesh-sivaraman opened this issue Nov 23, 2021 · 0 comments · Fixed by #9

Comments

@venkatesh-sivaraman
Copy link
Contributor

The following thumbnail specification causes an error when loading the widget:

img_thumbnails = emblaze.ImageThumbnails(images, ids=image_ids)
text_thumbnails = emblaze.TextThumbnails(names, ids=text_ids)
thumbnails = emblaze.CombinedThumbnails([img_thumbnails, text_thumbnails])

The error seems to occur because text_thumbnails doesn't have a descriptions object when it is serialized to JSON. Current workaround is to add a descriptions parameter containing None for every id: emblaze.TextThumbnails(names, [None for _ in text_ids], ids=text_ids).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant