MCPcopy Index your code
hub / github.com/ipython/ipython / show

Method show

IPython/lib/demo.py:417–427  ·  view source on GitHub ↗

Show a single block on screen

(self,index=None)

Source from the content-addressed store, hash-verified

415 self()
416
417 def show(self,index=None):
418 """Show a single block on screen"""
419
420 index = self._get_index(index)
421 if index is None:
422 return
423
424 print(self.marquee('<%s> block # %s (%s remaining)' %
425 (self.title,index,self.nblocks-index-1)))
426 print(self.src_blocks_colored[index])
427 sys.stdout.flush()
428
429 def show_all(self):
430 """Show entire demo on screen, block by block"""

Callers 5

__call__Method · 0.95
inline_figshow.pyFile · 0.45
mpl_execfileFunction · 0.45
gui-qt.pyFile · 0.45
gui-gtk4.pyFile · 0.45

Calls 3

_get_indexMethod · 0.95
marqueeMethod · 0.95
flushMethod · 0.45

Tested by

no test coverage detected