# libtmux.Session.panes

- **Module:** libtmux
- **Package:** libtmux
- **Language:** Python
- **Kind:** property
- **Source:** https://github.com/tmux-python/libtmux/blob/38e368c11117fb4aeb2f082d552cd4f210eae06a/src/libtmux/session.py#L268
- **Page:** https://libtmux.org/en/py/stable/reference/libtmux-session-panes/

tmux command: [`list-panes`](/en/tmux/latest/manual/list-panes/)

```
libtmux.Session.panes(self) -> QueryList[Pane]
```

Panes contained by session's windows.

Can be accessed via
:meth:`.panes.get() <libtmux._internal.query_list.QueryList.get()>` and
:meth:`.panes.filter() <libtmux._internal.query_list.QueryList.filter()>`

## In other ports

### List a session's panes

- PowerShell: [`LibTmux\Get-TmuxPane`](/en/powershell/latest/reference/libtmux-get-tmuxpane/) (cmdlet). Use the [`-Session`](/en/powershell/latest/reference/libtmux-get-tmuxpane/#LibTmux%5CGet-TmuxPane.parameter.Session) parameter set to acquire panes across that session’s windows.
- Ruby: [`LibTmux::Session#list_panes`](/en/ruby/latest/reference/libtmux-session-list_panes/) (method)
- TypeScript: [`session.Session.panes`](/en/ts/latest/reference/session-session-panes/) (method)
- Rust: [`session.Session.panes`](/en/rs/latest/reference/session-session-panes/) (method)
- Go: [`tmux.Session.Panes`](/en/go/latest/reference/tmux-session-panes/) (method)
- C#: [`LibTmux.Session.Panes`](/en/csharp/latest/reference/libtmux-session-panes/) (property)
- C++: [`libtmux::Session::panes`](/en/cxx/latest/reference/libtmux-session-panes/) (method)
- Swift: [`Snapshot.panes(of:)`](/en/swift/latest/reference/snapshot-panes(of-)/) (method)
- F#: [`LibTmux.FSharp.Session.panes`](/en/fsharp/latest/reference/libtmux-fsharp-session-panes/) (function). Builds a deferred pane query from one `LibTmux.Session` and its server. `Query.list` acquires panes across that session’s windows.
