# libtmux.Window.split_window

- **Module:** libtmux.Window
- **Package:** libtmux
- **Language:** Python
- **Kind:** method
- **Source:** https://github.com/tmux-python/libtmux/blob/036c521c4b83ce6e434eb50afe2a0d08a6a05e46/src/libtmux/window.py#L1728
- **Page:** https://libtmux.org/reference/py/libtmux-window-split_window/

```
libtmux.Window.split_window(self, target: int | str | None = None, start_directory: StrPath | None = None, attach: bool = False, vertical: bool = True, shell: str | None = None, size: str | int | None = None, percent: int | None = None, # deprecated, environment: dict[str, str] | None = None) -> Pane
```

Split window and return the created :class:`Pane`.
