code: def hsplit(self, location=None, new=False, text=None):
          
          assert location is None or text is None or new is False  # Don't pass two of them.
  
          if location or text or new:
              editor_buffer = self._get_or_create_editor_buffer(location=location, text=text)
          else:
              editor_buffer = None
          self.active_tab.hsplit(editor_buffer)
docs: Split horizontally.