# libtmux.Session.show_environment

- **Module:** libtmux.Session
- **Package:** libtmux
- **Language:** Python
- **Kind:** method
- **Source:** https://github.com/tmux-python/libtmux/blob/036c521c4b83ce6e434eb50afe2a0d08a6a05e46/src/libtmux/common.py#L175
- **Page:** https://libtmux.org/reference/py/libtmux-session-show_environment/

```
libtmux.Session.show_environment(self) -> dict[str, bool | str]
```

Show environment ``$ tmux show-environment -t [session]``.

Return dict of environment variables for the session.

## Returns

dict
    environmental variables in dict, if no name, or str if name
    entered.
