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

Method jump

IPython/lib/demo.py:376–380  ·  view source on GitHub ↗

Jump a given number of blocks relative to the current one. The offset can be positive or negative, defaults to 1.

(self,num=1)

Source from the content-addressed store, hash-verified

374 self.seek(self.block_index-num)
375
376 def jump(self,num=1):
377 """Jump a given number of blocks relative to the current one.
378
379 The offset can be positive or negative, defaults to 1."""
380 self.seek(self.block_index+num)
381
382 def again(self):
383 """Move the seek pointer back one block and re-execute."""

Callers

nothing calls this directly

Calls 1

seekMethod · 0.95

Tested by

no test coverage detected