Jupyter extension for natural language to Python code conversion
Top 21.9% on sourcepulse
This project provides a Jupyter extension that translates natural language queries into Python code, aiming to simplify data analysis for users. It offers a proof-of-concept for integrating natural language processing directly into the notebook environment.
How It Works
The extension leverages a pipeline that includes intent detection and named entity recognition (NER) to understand user queries. It utilizes SentenceTransformers (specifically paraphrase-MiniLM-L6-v2) for semantic understanding and can generate code snippets for common data analysis tasks, including pandas commands and integrations with popular libraries.
Quick Start & Requirements
pip install .
after cloning the repository.export JUPYTER_TEXT2CODE_MODE="cpu"
.sudo apt-get install libopenblas-dev libomp-dev
.Highlighted Details
Maintenance & Community
Authored by Deepak Rawat, Kartik Godawat, and Abdullah Meda. The project has a TODO list including adding Ollama support for local LLMs and improving intent detection.
Licensing & Compatibility
The repository does not explicitly state a license in the provided README.
Limitations & Caveats
The project is described as a proof-of-concept. Windows support is listed as a future TODO item. The README mentions a previous plugin name "mopp" which may require uninstallation before installing the current version.
1 year ago
Inactive