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

When a view is removed, hide the container and delete the model id #2023

Merged
merged 1 commit into from Mar 29, 2018

Conversation

jasongrout
Copy link
Member

We modify the actual data in the view mimetype to change the model_id to be the empty string. This is valid according to the view schema. As a new convention, an empty string for the model id indicates that the view was explicitly removed and should be hidden.

Fixes #1845

This actually doesn’t quite remove all of the empty space in JuptyerLab because there is an extra nesting of containers for rendered outputs, but it does make it better, and does seem to remove space in the separate (simplified) output area views.

CC @SylvainCorlay

…ew and delete the model id from the view mimetype.

As a new convention, an empty string for the model id indicates that the view was explicitly removed and should be hidden.

Fixes jupyter-widgets#1845

This actually doesn’t quite remove all of the empty space in JuptyerLab because there is an extra nesting of containers for rendered outputs, but it does make it better, and does seem to remove space in the separate (simplified) output area views.
@jasongrout jasongrout added this to the 7.2 milestone Mar 28, 2018
@jasongrout jasongrout merged commit 4aceb86 into jupyter-widgets:master Mar 29, 2018
@marscher
Copy link

Thanks for this workaround!

@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 7, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 7, 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.

Close a widget but the associate '<div class="output_area">' still exists
2 participants