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
[FIX] rich display in jupyter notebook/lab #4183
Conversation
👋 @jeromedockes Thanks for creating a PR! Until this PR is ready for review, you can include the [WIP] tag in its title, or leave it as a github draft. Please make sure it is compliant with our contributing guidelines. In particular, be sure it checks the boxes listed below.
For new features:
For bug fixes:
We will review it as quick as possible, feel free to ping us with questions if needed. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4183 +/- ##
=======================================
Coverage 92.02% 92.02%
=======================================
Files 144 144
Lines 16373 16376 +3
Branches 3427 3427
=======================================
+ Hits 15067 15070 +3
Misses 766 766
Partials 540 540
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Should we then remove |
according to the documentation |
Ok let's keep both for now. Can you link the docs here? |
sorry I thought I had done so: https://ipython.readthedocs.io/en/stable/config/integrating.html#MyObject._repr_mimebundle_ |
I'll link them in the docstrings as well |
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.
Good with me!
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.
LGTM, thx !
I'm not 100% sure why but at least on some jupyter versions defining
_repr_html_
is not enough; defining_repr_mimebundle_
instead (or as well) fixes the issue.main branch:
this PR: