ChatGPT Jupyter 扩展项目教程

ChatGPT Jupyter 扩展项目教程

chat-gpt-jupyter-extensionA browser extension that lets you chat with ChatGPT from any local Jupyter notebook.项目地址:https://gitcode.com/gh_mirrors/cha/chat-gpt-jupyter-extension

项目目录结构及介绍

chat-gpt-jupyter-extension/
├── LICENSE
├── README.md
├── background.js
├── content.js
├── manifest.json
├── options.html
├── options.js
└── popup.html
└── popup.js
  • LICENSE: 项目的许可证文件。
  • README.md: 项目的说明文档。
  • background.js: 扩展的后台脚本。
  • content.js: 注入到 Jupyter Notebook 页面的内容脚本。
  • manifest.json: 扩展的清单文件,包含扩展的配置信息。
  • options.html: 扩展的选项页面。
  • options.js: 选项页面的脚本。
  • popup.html: 扩展的弹出页面。
  • popup.js: 弹出页面的脚本。

项目启动文件介绍

  • background.js: 这是扩展的后台脚本,负责处理扩展的后台逻辑。它会在浏览器启动时自动运行。
  • content.js: 这是注入到 Jupyter Notebook 页面的内容脚本,负责与页面进行交互,提供 ChatGPT 的功能。

项目配置文件介绍

  • manifest.json: 这是扩展的清单文件,包含扩展的配置信息。以下是该文件的部分内容示例:
{
  "manifest_version": 2,
  "name": "ChatGPT Jupyter Extension",
  "version": "1.0",
  "description": "A browser extension that lets you chat with ChatGPT from any local Jupyter notebook.",
  "permissions": [
    "activeTab",
    "storage"
  ],
  "background": {
    "scripts": ["background.js"],
    "persistent": false
  },
  "content_scripts": [
    {
      "matches": ["http://localhost:8888/*"],
      "js": ["content.js"]
    }
  ],
  "browser_action": {
    "default_popup": "popup.html",
    "default_icon": {
      "16": "images/icon-16.png",
      "48": "images/icon-48.png",
      "128": "images/icon-128.png"
    }
  },
  "options_ui": {
    "page": "options.html",
    "open_in_tab": true
  }
}
  • manifest_version: 指定清单文件的版本。
  • name: 扩展的名称。
  • version: 扩展的版本号。
  • description: 扩展的描述。
  • permissions: 扩展所需的权限。
  • background: 后台脚本的配置。
  • content_scripts: 内容脚本的配置。
  • browser_action: 浏览器动作的配置,包括弹出页面的设置。
  • options_ui: 选项页面的配置。

以上是 ChatGPT Jupyter 扩展项目的基本教程,涵盖了项目的目录结构、启动文件和配置文件的介绍。希望这些信息能帮助你更好地理解和使用该项目。

chat-gpt-jupyter-extensionA browser extension that lets you chat with ChatGPT from any local Jupyter notebook.项目地址:https://gitcode.com/gh_mirrors/cha/chat-gpt-jupyter-extension

  • 8
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
J Notebook是一个在浏览器中使用的交互式的笔记本,可以实现将代码、文字完美结合起来。它的受众群体大多数是一些从事数据科学领域相关(机器学习、数据分析等)的人员。Jupyter Notebook提供了丰富的功能,可以用于编写、执行和共享代码,并且支持多种编程语言。你可以在Jupyter Notebook中编写代码、运行代码,并且将代码的执行结果以及相应的文本、图表等展示在笔记本中。这使得Jupyter Notebook成为一个非常强大的工具,可以帮助人们进行数据分析、可视化、机器学习等任务。Jupyter Notebook的使用非常灵活,你可以根据自己的需求来安装和配置相应的环境。在Jupyter Notebook中,你可以使用各种插件和扩展来增强其功能。总的来说,Jupyter Notebook是一个非常优秀的工具,可以帮助人们更方便地进行数据科学相关的工作。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [真是绝了!史上最详细的Jupyter Notebook入门教程](https://blog.csdn.net/qq_60498436/article/details/125614060)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *2* [ApiLogicServerTutorial:用于API逻辑服务器的Jupyter实验室笔记本](https://download.csdn.net/download/weixin_42134537/15279792)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *3* [(超详细)Jupyter Notebook入门教程](https://blog.csdn.net/qq_40918859/article/details/125067935)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

秋玥多

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值