Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

926 B
Raw Blame
export type NotebookDataframeResult = {
    columns: string[]
    rows: Record<string, any>[]
    rowCount: number
}

export type PythonKernelVariableResponse = {
    status: 'ok' | 'error'
    data?: Record<string, any>
    metadata?: Record<string, any>
    type?: string
    hogql_query?: string | null
    ename?: string
    evalue?: string
    traceback?: string[]
}

export type PythonKernelExecuteResponse = {
    status: string
    stdout: string
    stderr: string
    result?: Record<string, any> | null
    media?: { mime_type: string; data: string }[] | null
    execution_count?: number | null
    error_name?: string | null
    traceback?: string[]
    variables?: Record<string, PythonKernelVariableResponse> | null
    started_at?: string
    completed_at?: string
    kernel_runtime?: {
        id: string
        status: string
        last_used_at?: string | null
        sandbox_id?: string | null
    }
}