# MutableExpander

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/callbacks/streamlit/mutable_expander/MutableExpander)

Streamlit expander that can be renamed and dynamically expanded/collapsed.

## Signature

```python
MutableExpander(
    self,
    parent_container: DeltaGenerator,
    label: str,
    expanded: bool,
)
```

## Constructors

```python
__init__(
    self,
    parent_container: DeltaGenerator,
    label: str,
    expanded: bool,
)
```

| Name | Type |
|------|------|
| `parent_container` | `DeltaGenerator` |
| `label` | `str` |
| `expanded` | `bool` |


## Properties

- `label`
- `expanded`

## Methods

- [`clear()`](https://reference.langchain.com/python/langchain-community/callbacks/streamlit/mutable_expander/MutableExpander/clear)
- [`append_copy()`](https://reference.langchain.com/python/langchain-community/callbacks/streamlit/mutable_expander/MutableExpander/append_copy)
- [`update()`](https://reference.langchain.com/python/langchain-community/callbacks/streamlit/mutable_expander/MutableExpander/update)
- [`markdown()`](https://reference.langchain.com/python/langchain-community/callbacks/streamlit/mutable_expander/MutableExpander/markdown)
- [`exception()`](https://reference.langchain.com/python/langchain-community/callbacks/streamlit/mutable_expander/MutableExpander/exception)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/a6a6079511ac8a5c1293337f88096b8641562e77/libs/community/langchain_community/callbacks/streamlit/mutable_expander.py#L26)