We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Widget._ipython_display_() just creates plaintext and the widget mimetype.
Widget._ipython_display_()
subclassing widgets should have a way to inject their own.
For this, we should replace the use of _ipython_display_ with the use of _repr_mimebundle_. Then we can do:
_ipython_display_
_repr_mimebundle_
def MyWidget(Widget): def _repr_mimebundle_(self): return { **super()._repr_mimebundle_(), 'text/latex': ... }
The text was updated successfully, but these errors were encountered:
Thanks. I think the plan is to make this switch for the next major release, c.f. #1811.
Sorry, something went wrong.
No branches or pull requests
Widget._ipython_display_()
just creates plaintext and the widget mimetype.subclassing widgets should have a way to inject their own.
For this, we should replace the use of
_ipython_display_
with the use of_repr_mimebundle_
. Then we can do:The text was updated successfully, but these errors were encountered: