Skip to main content

AI-assisted error debugger with OpenRouter model fallback for Jupyter.

Project description

jupyter_ai_debugger

AI-assisted error debugger for Jupyter notebooks using OpenRouter with automatic model fallback.

Features

  • Hooks into Jupyter/IPython exceptions
  • Sends error + code to OpenRouter AI
  • Returns explanation and corrected code
  • Auto-suggests corrected code into next cell

Installation

pip install jupyter-ai-debugger

Usage

Set your API key as an environment variable:

export OPENROUTER_API_KEY="your_key_here"

Or pass it directly in Python:

from jupyter_ai_debugger import AIDebugger
AIDebugger(api_key="your_key").activate()

Now any error in Jupyter will trigger AI debugging suggestions!

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

jupyter_ai_debugger-0.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

jupyter_ai_debugger-0.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for jupyter_ai_debugger-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0620e85a27a9ec9e22d6c59601ee691d5bef621f64b0f74c4600b4b37e8e4c45
MD5 eec52561cb6098eea06662b0124a1b9d
BLAKE2b-256 e5268b990d357d285bf54a81468a9744e694cd7eb6ff41e4001d36a750ad82db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jupyter_ai_debugger-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1a769eeffb81b0f32a17b79657791897575437cb95c2184be2ad179c1abd04cf
MD5 76862626efd67864922dd9beac481d40
BLAKE2b-256 bbd80c7ff6c1802ee8c14609b3f3b075a894d3ef289a3184a305b2971ca44095

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