# libtmux.Window.from_window_id

- **Module:** libtmux.Window
- **Package:** libtmux
- **Language:** Python
- **Kind:** method
- **Source:** https://github.com/tmux-python/libtmux/blob/9fdd083a8181a827889337b63cd4e6daea661a8c/src/libtmux/window.py#L200
- **Page:** https://libtmux.org/en/py/latest/reference/libtmux-window-from_window_id/

```
libtmux.Window.from_window_id(cls, server: Server, window_id: str) -> Window
```

Create Window from existing window_id.

tmux's ``cmd_find`` routes a ``-t`` target by *sigil*, so an ``@``-id
handed to ``list-windows`` resolves to that window's session and lists
it. The rows come back stamped with the session tmux considers
canonical for the window -- the most recently active one -- so a window
linked into several sessions reports the same parent tmux itself would.

## Parameters

- `cls`
- `server` (Server): The tmux server holding the window.
- `window_id` (str): Window id, e.g. ``"@3"``.

## Returns

:class:`Window`

## Raises

- `TmuxObjectDoesNotExist`: When no such window exists on a reachable server.
- `LibTmuxException`: When tmux itself is unreachable.

## Example

```python
>>> Window.from_window_id(server=window.server, window_id=window.window_id)
Window(@1 1:..., Session($1 ...))
```
