Skip to content

output widget append_display_data does not display widgets #1811

Closed
@jasongrout

Description

@jasongrout

It seems there are some problems either with the output widget append_display_data method (from #1752), or how we display widgets.

from ipywidgets import Output, IntSlider
out = Output(layout={'border': '1px solid black'})
out.append_display_data(IntSlider())
out

should capture the intslider inside of the output widget, but instead we get

screen shot 2017-11-08 at 8 56 40 pm

If I use the output widget as a context manager, it works fine:

from ipywidgets import Output, IntSlider
from IPython.display import display
out = Output(layout={'border': '1px solid black'})
with out:
    display(IntSlider())
out

screen shot 2017-11-08 at 8 58 43 pm

Metadata

Metadata

Assignees

Labels

resolved-lockedClosed issues are locked after 30 days inactivity. Please open a new issue for related discussion.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions