code: def _repr_pretty_(self, p: Any, cycle: bool) -> None:
          
          if cycle:
              # There should never be a cycle.  This is just in case.
              p.text('Circuit(...)')
          else:
              p.text(self.to_text_diagram())
docs: Print ASCII diagram in Jupyter.