def _repr_html_(self) -> str:
        """Print ASCII diagram in Jupyter notebook without wrapping lines."""
        return (
            '<pre style="overflow: auto; white-space: pre;">'
            + html.escape(self.to_text_diagram())
            + '</pre>'
        )
Print ASCII diagram in Jupyter notebook without wrapping lines.
cirq-core/cirq/circuits/circuit.py