Jupyter extension for interacting with ChatGPT in notebooks
Top 96.9% on sourcepulse
This browser extension integrates ChatGPT directly into local Jupyter Notebooks, enabling users to generate and execute code interactively within their existing workflow. It's designed for data scientists, researchers, and developers who leverage Jupyter for experimentation and coding. The primary benefit is streamlining the process of getting code suggestions and examples from ChatGPT and immediately testing them in a notebook environment.
How It Works
The extension injects JavaScript into the Jupyter Notebook web page, acting as a privileged proxy. It reuses the bearer token from an established OpenAI ChatGPT login session to communicate with the service, bypassing the lack of an official API. Prompts are entered into markdown cells prefixed with ##### chat
. Upon pressing Shift+Enter
, the extension extracts the prompt, infers the programming language, and sends it to ChatGPT along with relevant prior code cells from the same thread as context. Responses containing code are parsed and placed into separate, executable Jupyter code cells.
Quick Start & Requirements
build.zip
from Releases, unzip, and drag the folder onto the extensions page (chrome://extensions
or edge://extensions
) with Developer Mode enabled.npm
, and run ./build.sh
.Highlighted Details
Maintenance & Community
WangDàpéng/chat-gpt-google-extension
.Licensing & Compatibility
Limitations & Caveats
2 years ago
1+ week