E2B provides open-source secure sandboxes for AI-generated code execution. See more here.

Installation and Setup

You have to install a python package:
pip install e2b_code_interpreter

Tool

See a usage example.
from langchain_community.tools import E2BDataAnalysisTool