This guide provides a quick overview for getting started with theDocumentation Index
Fetch the complete documentation index at: https://docs.langchain.com/llms.txt
Use this file to discover all available pages before exploring further.
DaytonaDataAnalysisTool.
Overview
Details
| Class | Package | Serializable | JS support |
|---|---|---|---|
DaytonaDataAnalysisTool | langchain-daytona-data-analysis | ❌ | ❌ |
Features
- 🔒 Secure sandboxed execution - Run Python code in isolated environments
- 🐍 Python data analysis - Perform data analysis tasks with full Python capabilities
- 📁 File management - Upload and download files to/from the sandbox
- 🔄 Multi-step workflows - Support for complex, multi-step data analysis processes
- 🎯 Custom result handling - Use callbacks to process execution results
- 📦 Package management - Install Python packages dynamically in the sandbox
Setup
To access theDaytonaDataAnalysisTool, you’ll need to create a Daytona account, get an API key, and install the langchain-daytona-data-analysis integration package.
Credentials
You must configure credentials for Daytona. You can do this in one of three ways: 1. Set theDAYTONA_API_KEY environment variable:
Set API key
.env file in your project root:
Set API key
DaytonaDataAnalysisTool:
Set API key
Enable tracing
Installation
TheDaytonaDataAnalysisTool lives in the langchain-daytona-data-analysis package:
From PyPI
Install the package directly from PyPI:From GitHub
Install the latest development version from GitHub:Instantiation
Import and instantiate the tool:Initialize tool instance
Invocation
Directly
Call tool
As a ToolCall
ToolCall
Within an agent
Agent with tool
Additional functionalities
TheDaytonaDataAnalysisTool provides several methods for managing files and the sandbox environment:
File management
Upload files to the sandbox:Package management
Install Python packages in the sandbox:For a list of preinstalled packages, see the Daytona Default Snapshot documentation.
Sandbox management
Access the sandbox instance:API reference
For detailed documentation of allDaytonaDataAnalysisTool features and configurations, head to the API reference.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

