code: def split_window(pymux, variables):
      
      executable = variables['<executable>']
      start_directory = variables['<start-directory>']
  
      # The tmux definition of horizontal is the opposite of prompt_toolkit.
      pymux.add_process(executable, vsplit=variables['-h'],
                        start_directory=start_directory)
docs: Split horizontally or vertically.