Local code execution for enhanced data analysis
Top 87.5% on sourcepulse
This project provides a local implementation of OpenAI's Advanced Data Analysis (formerly Code Interpreter), enabling users to execute Python code within their own environment. It targets developers and data scientists seeking greater control over execution, enhanced data security, and the flexibility to use GPT-3.5 or GPT-4 models without online sandbox limitations.
How It Works
The system leverages OpenAI's function calling capabilities to interpret user requests, generate Python code, and execute it within a local Jupyter environment. This approach allows for custom package installations, direct file handling without upload restrictions, and improved data privacy by keeping sensitive information on the user's machine. It also supports vision input via gpt-4-vision-preview
through a non-end-to-end method.
Quick Start & Requirements
pip install -r requirements.txt
or pip install -r requirements_full.txt
config.json
in src/
with API keys and model settings.python web_ui.py
from the src/
directory.python web_ui.py -n <path_to_notebook>
Highlighted Details
gpt-4o
.gpt-4-vision-preview
.Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
Executing AI-generated code locally carries inherent security risks; users are strongly advised to use protective measures like virtual machines. The project relies on specific OpenAI model versions supporting function calling, and older versions will not work. Vision input is handled via a non-end-to-end approach.
11 months ago
1 day