INNER CODE UNIT · Python

_aux_first_page

pgalko/BambooAI · web_app/app.py:570

def _aux_first_page(path, execution_mode, executor_client):
    """The Data tab's first page of an auxiliary file (2026-09-08): from the executor in api mode, read locally otherwise; None if unavailable."""
    try:
        if execution_mode == 'api' and executor_client is not None:
            page = executor_client.aux_page(path, 0, 50)
            if not page:
                logger.warning("Data tab: the executor returned no page for the auxiliary file %s (an image before 2026-09-08 has no /aux_page) - showing the 100-row preview", path)
            return page or None
        return utils.aux_page(path, 0, 50)
    except Exception as exc:                                # noqa: BLE001
        logger.warning("Data tab: auxiliary page failed (%s) - showing the 100-row preview", exc)
        return None


def start_new_conversation(session_id):
    # Clear the Datasets folder first
    clear_datasets_folder()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…