Metadata-Version: 2.4
Name: bart-dias-jupyter-extension
Version: 0.1.5
Dynamic: Keywords
Summary: Bart.dIAs is an assistant for the WebGRIPP environment, focused on parallel programming analysis.
Project-URL: Homepage, https://github.com/github_username/myextension
Project-URL: Bug Tracker, https://github.com/github_username/myextension/issues
Project-URL: Repository, https://github.com/github_username/myextension.git
Author-email: "Bart.dIAs Team" <contact@example.com>
License: MIT License
        
        Copyright (c) 2024 Bart.dIAs Team
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Classifier: Framework :: Jupyter
Classifier: Framework :: Jupyter :: JupyterLab
Classifier: Framework :: Jupyter :: JupyterLab :: 4
Classifier: Framework :: Jupyter :: JupyterLab :: Extensions
Classifier: Framework :: Jupyter :: JupyterLab :: Extensions :: Prebuilt
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.8
Requires-Dist: httpx>=0.24.0
Requires-Dist: jupyter-server>=2.0.0
Requires-Dist: langchain-core<0.3.0,>=0.2.0
Requires-Dist: langchain-ollama<0.2.0,>=0.1.0
Requires-Dist: langchain<0.3.0,>=0.2.0
Requires-Dist: mcp[cli]>=1.0.0
Description-Content-Type: text/markdown

# Bart.dIAs - WebGRIPP AI Assistant

Bart.dIAs is an assistant for the WebGRIPP environment. Currently, it is solely an assistant for parallel programming that analyzes sequential code to identify bottlenecks and suggest parallelization strategies. It combines critical path analysis with pattern recognition to provide targeted recommendations for improving application performance.

## Features

- ⚡ **Bottleneck Analysis**: Identifies sequential bottlenecks in Python code.
- 🔄 **Parallelization Strategies**: Suggests strategies to parallelize code using recognized patterns.
- 🎯 **Critical Path Analysis**: Combines CPA with pattern recognition for targeted recommendations.
- 🤖 **LLM Chat**: Conversational interface to discuss code optimizations.
- 📎 **Code Context**: Analyze open files directly from JupyterLab.

## Prerequisites

- JupyterLab 4.x
- Node.js 18+
- Ollama running locally (default: `http://localhost:11434`)
- Bart.dIAs MCP Server (for deep code analysis)

## Installation

### 1. Install Dependencies

```bash
cd bart_dias_jupyter_extension
jlpm install
```

### 2. Build Extension

```bash
jlpm build
```

### 3. Install in JupyterLab

```bash
jupyter labextension install .
```

## Usage

1.  Open the Bart.dIAs extension from the right sidebar.
2.  Open a Python file you want to analyze.
3.  Click the attach button (📎) to send the code to the assistant.
4.  Ask for parallelization suggestions or performance analysis.

## Project Structure

```
bart_dias_jupyter_extension/
├── src/                    # Frontend (React/TypeScript)
│   ├── index.ts            # Extension entry point
│   ├── components/         # UI Components
│   ├── services/           # API & MCP logic
│   └── hooks/              # State management
├── style/                  # CSS Styles
└── pyproject.toml          # Python Packaging
```

## Technology Stack

- **Frontend**: React 18, TypeScript, Lumino
- **Analysis**: LangChain, MCP Adapters
- **AI**: Ollama (Local LLMs)

## License

MIT
