def _repr_pretty_(self, p: Any, cycle: bool) -> None:
        """Output to show in ipython and Jupyter notebooks."""
        if cycle:
            # There should never be a cycle.  This is just in case.
            p.text('ResultDict(...)')
        else:
            p.text(str(self))
Output to show in ipython and Jupyter notebooks.
cirq-core/cirq/study/result.py