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.1.tar.gz (107.5 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.1-py3-none-any.whl (406.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jupyter_ai_check-0.1.1.tar.gz
  • Upload date:
  • Size: 107.5 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.1.tar.gz
Algorithm Hash digest
SHA256 d807810b62e2eebbce4cb5fe7a5dcf2950f46453d70aa2113e8e2700e7d305d0
MD5 7ba641abb54d98c0266aa5404f52373c
BLAKE2b-256 d36ae0bd886cb20b0f7a84f27c2ec463f39015d9d81eb7bd2edb1d90779b21ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jupyter_ai_check-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 23b82e41658addf750c12a915f200ea6d6b4cfccd24af0b9cdc7a5ec88508faf
MD5 a276b167e5a6dd7aae4075927fce309b
BLAKE2b-256 bd8150511092fc8177f564842a553ff9e759b0f55d02a920561547a6bc8802dd

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