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

added convenience methods on output widget #1752

Merged
merged 1 commit into from
Oct 19, 2017

Conversation

mheilman
Copy link
Contributor

This adds some convenience methods for adding output items to the Output widget in order to address #1724.

It also should make it easier to work around the apparent race condition discussed in #1722.

The object to display (e.g., an instance of
`IPython.display.Markdown` or `IPython.display.Image`).
"""
fmt = InteractiveShell.instance().display_formatter.format
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is based on this line in IPython.core.display.py. It seemed easier to follow how the display function works, where a user can pass, e.g., an Image object rather than asking users to provide the "raw" output format that this format function provides. If there's a better way to get this formatting functionality, let me know.

@jasongrout
Copy link
Member

This looks good to me. Thanks!

@jasongrout jasongrout merged commit c4026dd into jupyter-widgets:master Oct 19, 2017
@jasongrout jasongrout added this to the 7.x milestone Oct 19, 2017
@rgbkrk
Copy link
Contributor

rgbkrk commented Oct 19, 2017

Ah great, thanks for this.

@jasongrout
Copy link
Member

Hopefully it will be released this afternoon.

@jasongrout jasongrout modified the milestones: 7.x, 7.0.3 Oct 20, 2017
@github-actions github-actions bot added the resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion. label Feb 10, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants