# libtmux.Pane.set_height

- **Module:** libtmux
- **Package:** libtmux
- **Language:** Python
- **Kind:** method
- **Source:** https://github.com/tmux-python/libtmux/blob/38e368c11117fb4aeb2f082d552cd4f210eae06a/src/libtmux/pane.py#L1594
- **Page:** https://libtmux.org/en/py/stable/reference/libtmux-pane-set_height/

```
libtmux.Pane.set_height(self, height: int) -> Pane
```

Set pane height.

## Parameters

- `height` (`int`): Pane height, in cells.

## Returns

:class:`Pane`
    Self, for method chaining.

## In other ports

### Set a pane's height

- Go: [`tmux.Pane.SetHeight`](/en/go/latest/reference/tmux-pane-setheight/) (method)
- C#: [`LibTmux.Pane.SetHeightAsync`](/en/csharp/latest/reference/libtmux-pane-setheightasync/) (method)
- C++: [`libtmux::Pane::set_height`](/en/cxx/latest/reference/libtmux-pane-set_height/) (method)
