Skip to main content

AI-powered error analysis for Jupyter Notebook cells

Project description

Jupyter AI Check

AI-powered error analysis extension for Jupyter Notebook 7+. 基于 Jupyter Notebook 7+ 的 AI 错误分析扩展。

当单元格代码运行出错时,自动将代码和错误信息发送给 AI 分析,点击工具栏 AI Check 按钮查看修复建议,支持一键复制/替换代码。

安装

pip install jupyter-ai-check

# 必须执行:启用 Server Extension
jupyter server extension enable --py ai_check

配置

首次使用时,扩展会自动创建配置文件 ~/.jupyter/ai_check_config.json,包含默认的 prompt 和占位符 API key。

编辑该文件,将 api_keyurlmodel 替换为你的实际 AI 服务信息:

{
  "ai_providers": [
    {
      "name": "deepseek",
      "url": "https://api.deepseek.com/v1/chat/completions",
      "api_key": "sk-your-real-api-key",
      "model": "deepseek-chat",
      "priority": 1
    }
  ],
  "timeout": 30
}

支持配置多个 AI Provider,按 priority 升序自动切换。

使用

  1. 重启 jupyter lab
  2. 打开任意 notebook,运行有错误的代码单元格
  3. 点击顶部工具栏的 AI Check 按钮
  4. 弹窗显示问题类型、分析和修复代码
  5. 点击 复制替换 按钮应用修复

卸载

pip uninstall jupyter-ai-check

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_check-0.1.2.tar.gz (107.7 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_check-0.1.2-py3-none-any.whl (407.0 kB view details)

Uploaded Python 3

File details

Details for the file jupyter_ai_check-0.1.2.tar.gz.

File metadata

  • Download URL: jupyter_ai_check-0.1.2.tar.gz
  • Upload date:
  • Size: 107.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for jupyter_ai_check-0.1.2.tar.gz
Algorithm Hash digest
SHA256 810d28c4c914554e8c7b0fc4772fda171e94590b92f6d95450ad864e28ae3efa
MD5 2ece73b9869ceade13df830b9f23c725
BLAKE2b-256 efcb268ff472d33d55e1f14ac2278acb82fd06064727c62de6f1a6521e8a17b5

See more details on using hashes here.

File details

Details for the file jupyter_ai_check-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for jupyter_ai_check-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8560366a544f6f6589b9f118731f530b2e974bd55d86a6668dfa3ae06458b7e9
MD5 9602391e4054a8a4d6e4180640726f43
BLAKE2b-256 bd80c1dd4ab14fe4efe99c67222c1b54cf5256a693366d7f32a27b060b993f0a

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