> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Set up Visualize This in Python

> How to enable Visualize This in an Atoti Python project through `AiConfig` with an LLM connection and chat model.

<Info>
  ### Atoti Intelligence Essentials

  This is part of the Atoti Intelligence Essentials offer.
</Info>

This guide explains how to enable Visualize This in an Atoti Python project.

## Prerequisites

The following requirements must be met before setting up Visualize This:

* An Atoti Python project
* A license with the AI flag enabled
* A configured LLM (see [Set up an LLM](../configure-and-start/set-up-an-llm))

## Install the package

Visualize This requires an LLM provider. Install the package for your provider, for example:

```bash theme={"languages":{"custom":["/engine/python-sdk/0.9/languages/pycon.tmLanguage.json"]}}
uv add "atoti[ai-openai]"
```

## Enable Visualize This

Unlike Auto-Explain, Visualize This requires an LLM. Provide both a `connection` and a `chat` model to [`AiConfig`](https://docs.activeviam.com/products/atoti/python-sdk/latest/api/atoti_ai.ai_config.html), then pass it to [`SessionConfig`](https://docs.activeviam.com/products/atoti/python-sdk/latest/api/atoti.config.session_config.html). The example below uses OpenAI; see the [LLM provider pages](../configure-and-start/set-up-an-llm) for other providers.

```python theme={"languages":{"custom":["/engine/python-sdk/0.9/languages/pycon.tmLanguage.json"]}}
import os
import atoti as tt
from atoti_ai import AiConfig
from atoti_ai_openai import ChatConfig, ConnectionConfig

with tt.experimental({"ai"}):
    ai_config = AiConfig(
        connection=ConnectionConfig(api_key=os.environ["OPENAI_API_KEY"]),
        chat=ChatConfig(model="gpt-4o"),
    )

session = tt.Session.start(tt.SessionConfig(ai=ai_config))
```

## Verify the setup

After enabling Visualize This, verify that it is available:

1. Start the Atoti session.
2. Open the Atoti UI.
3. Check that the AI assistant appears in the interface.

## Related reading

* [How Visualize This works](./how-it-works)
* [Configure Visualize This](./configuration) to supply cube context
* [How to use Visualize This](../../../user-guide/chat) in the Atoti UI
* [Set up a custom disclaimer in Python](../disclaimer/setup-python)
