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_key、url、model 替换为你的实际 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 升序自动切换。
使用
- 重启
jupyter lab - 打开任意 notebook,运行有错误的代码单元格
- 点击顶部工具栏的 AI Check 按钮
- 弹窗显示问题类型、分析和修复代码
- 点击 复制 或 替换 按钮应用修复
卸载
pip uninstall jupyter-ai-check
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d807810b62e2eebbce4cb5fe7a5dcf2950f46453d70aa2113e8e2700e7d305d0
|
|
| MD5 |
7ba641abb54d98c0266aa5404f52373c
|
|
| BLAKE2b-256 |
d36ae0bd886cb20b0f7a84f27c2ec463f39015d9d81eb7bd2edb1d90779b21ef
|
File details
Details for the file jupyter_ai_check-0.1.1-py3-none-any.whl.
File metadata
- Download URL: jupyter_ai_check-0.1.1-py3-none-any.whl
- Upload date:
- Size: 406.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23b82e41658addf750c12a915f200ea6d6b4cfccd24af0b9cdc7a5ec88508faf
|
|
| MD5 |
a276b167e5a6dd7aae4075927fce309b
|
|
| BLAKE2b-256 |
bd8150511092fc8177f564842a553ff9e759b0f55d02a920561547a6bc8802dd
|