MCPcopy Create free account
hub / github.com/ipython/ipython / __repr__

Method __repr__

IPython/core/display.py:809–816  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

807 self._display_id = hexlify(os.urandom(8)).decode('ascii')
808
809 def __repr__(self):
810 fraction = self.progress / self.total
811 filled = '=' * int(fraction * self.text_width)
812 rest = ' ' * (self.text_width - len(filled))
813 return '[{}{}] {}/{}'.format(
814 filled, rest,
815 self.progress, self.total,
816 )
817
818 def _repr_html_(self):
819 return "<progress style='width:{}' max='{}' value='{}'></progress>".format(

Callers 1

__repr__Method · 0.45

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected