# tmuxp.workspace.freezer.freeze

- **Module:** tmuxp.workspace.freezer
- **Package:** tmuxp
- **Language:** Python
- **Kind:** function
- **Source:** https://github.com/tmux-python/tmuxp/blob/153acdf6ff1268b14d3d03ed488f545a7123c8f1/src/tmuxp/workspace/freezer.py#L59
- **Page:** https://libtmux.org/en/py/stable/workspace/reference/tmuxp-workspace-freezer-freeze/

```
tmuxp.workspace.freezer.freeze(
    session: Session,
) -> dict[str, t.Any]
```

Freeze live tmux session into a tmuxp workspace.

## Parameters

- `session` (`Session`): session object

## Returns

dict
    tmuxp compatible workspace

## In other ports

### Export a live session as workspace data

- Rust: [`freeze.freeze`](/en/rs/latest/workspace/reference/freeze-freeze/) (function)
