code: def edit_file(self, filename, line):
          
          if encoding.is_text_file(filename):
              # The default line number sent by ipykernel is always the last
              # one, but we prefer to use the first.
              self.edit_goto.emit(filename, 1, '')
docs: Handle %edit magic petitions.