Open
Description
The JupyterLab UI allows for the output view of code cells to be "torn off" into their own view (eg feature request https://github.com/microsoft/vscode-python/issues/8740).
The JupyterLab sidecar extension is an alternative context manager that allows a a user to create a reference to a new view and then display a widget within it.
from sidecar import Sidecar
from ipywidgets import IntSlider
sc = Sidecar(title='Sidecar Output')
#Create some sort of widget
sl = IntSlider(description='Some slider')
# Create the separate output view and populate it with the widget
with sc:
display(sl)