# libtmux.Session.switch_client

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

```
libtmux.Session.switch_client(self) -> Session
```

Switch client to session.

## Raises

- [`exc.LibTmuxException`](/en/py/stable/reference/libtmux-exc-libtmuxexception/)

## In other ports

### Switch the caller's client to a session

- Go: [`tmux.Session.SwitchClient`](/en/go/latest/reference/tmux-session-switchclient/) (method)
- C#: [`LibTmux.Session.SwitchClientAsync`](/en/csharp/latest/reference/libtmux-session-switchclientasync/) (method)
