def METHOD_NAME(self, p: PrettyPrinter, cycle: bool):
    '''Cleanly wrappable display in Jupyter.'''
    if cycle:
        p.text(self.__class__.__name__ + '(<cyclic>)')
        return
    if self.skip_level_field:
        p.pretty(getattr(self, self.skip_level_field))
        return
    if self.main_field:
        p.pretty(getattr(self, self.main_field))
        return
    if self.string_format:
        p.pretty(self.string_format.format(**self.field_values))
        return
    fields = self.display_fields or self.field_order
    with p.group(4, self.__class__.__name__ + '(', ')'):
        if len(fields) > 1:
            for idx, name in enumerate(fields):
                if idx:
                    p.text(',')
                    p.breakable()
                p.text(name + '=')
                p.pretty(self.field_values[name])
        else:
            p.pretty(self.field_values[fields[0]])