Make recursive nested output widgets work.
Make recursive nested output widgets work.

Now the following works:

from ipywidgets import *
out1 = Output(layout={'border': '1px solid red'})
print('OUT1:')
display(out1)

with out1:
    print('xxx (under out1)')
    with out1:
        print("double nested in out1")
    print("still in out1")

Thanks to @williamstein who pointed this out in https://github.com/jupyter-widgets/ipywidgets/issues/2377#issuecomment-484725262

ipython/ipywidgets,jupyter-widgets/ipywidgets,SylvainCorlay/ipywidgets,SylvainCorlay/ipywidgets,jupyter-widgets/ipywidgets,SylvainCorlay/ipywidgets,jupyter-widgets/ipywidgets,ipython/ipywidgets,ipython/ipywidgets,SylvainCorlay/ipywidgets,ipython/ipywidgets,ipython/ipywidgets,jupyter-widgets/ipywidgets