Skip to main content

Atoti Intelligence Essentials

This is part of the Atoti Intelligence Essentials offer.
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)

Install the package

Visualize This requires an LLM provider. Install the package for your provider, for example:
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, then pass it to SessionConfig. The example below uses OpenAI; see the LLM provider pages for other providers.
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.