docstr: Move the current seek pointer to the given block.
  
  You can use negative indices to seek from the end, with identical
  semantics to those of Python lists.
docstr_tok: ["Move","the","current","seek","pointer","to","the","given","block",".","You","can","use","negative","indices","to","seek","from","the","end",",","with","identical","semantics","to","those","of","Python","lists","."]
code: def seek(self, index):
      """Move the current seek pointer to the given block.
  
      You can use negative indices to seek from the end, with identical
      semantics to those of Python lists."""
      if index < 0:
          index = self.nblocks + index
      self._validate_index(index)
      self.block_index = index
      self.finished = False
  
imports: import os
  import re
  import shlex
  import sys
  import pygments
  from pathlib import Path
  from IPython.utils.text import marquee
  from IPython.utils import openpy
  from IPython.utils import py3compat
label_desc: Use image node_id 7 for calling the Demo obj's underlying member method code with example usage: obj.seek(index) without return types