-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Add ability to hide outputs in Notebooks #109104
Comments
@rebornix What's a good way to verify this change? |
@DonJayamanne to provide logic for hiding empty ipywidget output. |
@rebornix Unfortunately the logic for rendering a widget is in the widget manager. import nglview
view = nglview.show_pdbid("3pqr")
view When we run this we get two outputs with almost identical data, but with different model_ids, see below:
Unfortunately, only the widget manager knows which one needs to be hidden. With the renderer architecture, the only way to determine whether a cell needs to be rendered or not can only be provided by the renderer. Finally, the renderer doesn't render the output immediately. |
@DonJayamanne I guess we can have a workaround for this by doing:
|
Sure, but my concern is if there are two legitimate outputs then VSCode might end up removing the padding. |
When this happens, we will automatically bring back the padding, it has a listener to the content height change. Does this fix the problem? |
I think this was fixed along with #214886, though that never got verified. |
Friendly ping! Looks like this issue requires some further steps to be verified. Please provide us with the steps necessary to verify this issue. |
Request for ability to hide output from notebooks.
Currently in the Python implementation of Notebooks, we have output that are hidden.
Adding an issue for what was discussed (forgot to add this issue last week).
@rebornix /cc
The text was updated successfully, but these errors were encountered: