-
Notifications
You must be signed in to change notification settings - Fork 294
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
Make sure display_data always contain metadata #269
Conversation
Thanks! Looks like having that default should indeed be fine anyway. |
(Edited the top comment with a screenshot, that seems to work) |
Checking the other notebooks before making this non-draft |
seems legit! |
I honestly believe we shouldn't do this, and that py3dmol should not use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@martinRenou Re: "I honestly believe we shouldn't do this, and that py3dmol should not use IPython.display.publish_display_data directly." Is there an approach you think they should take? I am happen to open an issue on their repo "observing" that their perhaps atypical/non-standard(?) approach caused this project to have to error trap on what appears to be an exceptional case so far. |
I am not 100% of this. But this |
Although this is documented API https://ipython.readthedocs.io/en/stable/api/generated/IPython.display.html#IPython.display.publish_display_data. So maybe it's an issue on IPython's side which should set the metadata to an empty dict by default. |
References
Attempt to fix #264