class_docstr: A shim to write html to Jupyter notebook.
class_docstr_tok: ["A","shim","to","write","html","to","Jupyter","notebook","."]
code: def _repr_mimebundle_(
      self,
      include: Sequence[str],
      exclude: Sequence[str],
      **kwargs: Any,
  ) -> Dict[str, str]:
      data = {"text/plain": self.text, "text/html": self.html}
      if include:
          data = {k: v for (k, v) in data.items() if k in include}
      if exclude:
          data = {k: v for (k, v) in data.items() if k not in exclude}
      return data
  
file_path: rich/rich/jupyter.py
imports: from typing import TYPE_CHECKING, Any, Dict, Iterable, List, Sequence
  from .None import get_console
  from .segment import Segment
  from .terminal_theme import DEFAULT_TERMINAL_THEME
label_desc: Use image node_id 2 for calling the JupyterRenderable obj's underlying member method code with example usage: obj._repr_mimebundle_(include, exclude) and returns: data