class_docstr: Widget used as a context manager to display output.
  
  This widget can capture and display stdout, stderr, and rich output.  To use
  it, create an instance of it and display it.
  
  You can then use the widget as a context manager: any output produced while in the
  context will be captured and displayed in the widget instead of the standard output
  area.
  
  You can also use the .capture() method to decorate a function or a method. Any output
  produced by the function will then go to the output widget. This is useful for
  debugging widget callbacks, for example.
  
  Example::
      import ipywidgets as widgets
      from IPython.display import display
      out = widgets.Output()
      display(out)
  
      print('prints to output area')
  
      with out:
          print('prints to output widget')
  
      @out.capture()
      def func():
          print('prints to output widget')
docstr: Append a stream output.
docstr_tok: ["Append","a","stream","output","."]
code: def _append_stream_output(self, text, stream_name):
      """Append a stream output."""
      self.outputs += (
          {"output_type": "stream", "name": stream_name, "text": text},
      )
  
imports: import sys
  from functools import wraps
  from .domwidget import DOMWidget
  from .trait_types import TypedTuple
  from .widget import register
  from .._version import __jupyter_widgets_output_version__
  from traitlets import Unicode, Dict
  from IPython.core.interactiveshell import InteractiveShell
  from IPython.display import clear_output
  from IPython import get_ipython
  import traceback
label_desc: Use image node_id 6 for calling the Output obj's underlying member method code with example usage: obj._append_stream_output(text, stream_name) without return types