Skip to main content

Agentic AI coding partner for IPython and Jupyter

Project description

🧠 JupyterPilot AI

JupyterPilot AI (jupyterpilot-ai) is a lightweight, provider-agnostic AI coding partner for IPython and Jupyter. It brings natural language code generation (%do) and automated error healing (%fix) to your notebook.


🚀 Features

  • %do : Transform instructions into Python code instantly.
  • %fix: Post-mortem self-healing for your last error.
  • Context Awareness: Remembers your last 3 cells for accurate variable usage.
  • Hybrid Support: Switch between local Ollama and cloud GPT-4o/Claude via LiteLLM.

📥 Installation

pip install jupyterpilot-ai

Enable the Extension

Add this to any cell in your notebook or your IPython startup script:

%load_ext jupyterpilot_ai

⚙️ Configuration

JupyterPilot AI looks for a configuration file at ~/.jupyterpilot/config.json.

Switching Modes

To switch between local and paid models, simply change the "mode" value in your config file:

{
    "mode": "cloud", 
    "local": {
        "url": "http://localhost:11434/api/generate",
        "model": "qwen2.5-coder:7b"
    },
    "cloud": {
        "provider": "openai",
        "model": "gpt-4o",
        "api_key": "sk-..."
    }
}
  • Local Mode ("mode": "local"):

    • Uses Ollama by default.
    • Requires Ollama to be running (ollama run qwen2.5-coder:7b).
    • You can customize the url and model in the local block.
  • Cloud Mode ("mode": "cloud"):

    • Uses LiteLLM to connect to paid providers.
    • Supports OpenAI, Anthropic (Claude), Google (Gemini), etc.
    • Specify your provider, model, and api_key.

🛠️ Usage

  • %do plot a sine wave
  • %fix (after an error)

📬 Contact

Wajoud Noorani - Wajoudnoorani59@gmail.com


📄 License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jupyterpilot_ai-0.1.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jupyterpilot_ai-0.1.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file jupyterpilot_ai-0.1.0.tar.gz.

File metadata

  • Download URL: jupyterpilot_ai-0.1.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for jupyterpilot_ai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b1fdb869b4fd0c443b101ac055e434c350a3b3f788afd3aa919f33bd1c7d8e49
MD5 519aa3ed1f1ba8e96734838c075e339d
BLAKE2b-256 c2503e21f34cab2b9e46ea5c8bb61e7f2e45f800ea2ee5aec0bddf4d581fcafe

See more details on using hashes here.

File details

Details for the file jupyterpilot_ai-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for jupyterpilot_ai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e03ebd7e5f13c6784c48a23c8dbefade2e73f0c5d7a0b19a60aad489828099c4
MD5 2b424e886bf6639e3a1f524574ab0c18
BLAKE2b-256 554458303a1a270f857d9d6fa7267a9466367d495cfc6abf9384dd09e97ac793

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page