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

Listen to changes in the OutputModel outputs list. #1301

Merged
merged 1 commit into from
Apr 19, 2017

Conversation

jasongrout
Copy link
Member

This lets us modify the outputs from the kernel side and see the changes reflected in the widget.

Because the model state is really stored in two different places (the output area and the outputs attribute), we have to be careful when processing an iopub message. For efficiency, we want to both send the message out to be appended to existing outputs, and add it to the model’s output attribute without triggering a rerender. We do this by using the newMessage attribute in the set, which is checked for in the event handlers.

This lets us modify the outputs from the kernel side and see the changes reflected in the widget.

Because the model state is really stored in two different places (the output area and the outputs attribute), we have to be careful when processing an iopub message. For efficiency, we want to both send the message out to be appended to existing outputs, and add it to the model’s output attribute without triggering a rerender. We do this by using the newMessage attribute in the set, which is checked for in the event handlers.
@jasongrout jasongrout merged commit 4d5a6b3 into jupyter-widgets:master Apr 19, 2017
@jasongrout jasongrout modified the milestone: 7.0 May 2, 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 15, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 15, 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.

1 participant