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

Allow do_inspect to return a rich display when enable_html_pager is True #361

Merged
merged 1 commit into from
Oct 8, 2018

Conversation

tonyfast
Copy link
Contributor

@tonyfast tonyfast commented Oct 7, 2018

The JupyterLab inspector can will accept text/html results. This pull request uses object_inspect_mime instead of object_inspect_text to inspect objects. object_inspect_text is already calling object_inspect_mime to return plain/text. This new feature optionally removes the text/html result data if enable_html_pager is False.

This also addresses an old issue #51 and inspects the object once.

@tonyfast tonyfast changed the title do_inspect returns __text/html__ when enable_html_pager is True Allow do_inspect to return a rich display when enable_html_pager is True Oct 7, 2018
@minrk minrk added this to the 5.1 milestone Oct 8, 2018
@minrk
Copy link
Member

minrk commented Oct 8, 2018

Nice!

@minrk minrk merged commit fe52dbd into ipython:master Oct 8, 2018
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 this pull request may close these issues.

2 participants