code: def from_file(cls, path, **kwargs):
          
          lines = lines_from_file(path)
          if 'meta' not in kwargs:
              kwargs['meta'] = {'from': 'file'}
          kwargs['meta']['filepath'] = path
          return cls(lines, **kwargs)
docs: Create an editor instance from a file on disk.