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

Method show

IPython/lib/demo.py:416–426  ·  view source on GitHub ↗

Show a single block on screen

(self,index=None)

Source from the content-addressed store, hash-verified

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

Callers 5

__call__Method · 0.95
inline_figshow.pyFile · 0.45
gui-gtk3.pyFile · 0.45
gui-qt.pyFile · 0.45
gui-gtk.pyFile · 0.45

Calls 3

_get_indexMethod · 0.95
marqueeMethod · 0.95
flushMethod · 0.45

Tested by

no test coverage detected