• This repository has been archived on 28/Sep/2023
  • Stars
    star
    299
  • Rank 139,269 (Top 3 %)
  • Language
    TypeScript
  • License
    GNU General Publi...
  • Created almost 2 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A browser extension to provide various AI helper functions in Jupyter Notebooks, powered by ChatGPT.

ChatGPT for Jupyter

A browser extension to provide various helper functions in Jupyter Notebooks and Jupyter Lab, powered by ChatGPT or GPT-4.

Primary functions, have ChatGPT/GPT-4:

  • Format - Automatically add comments, docstrings, and formatting to your code cell.
  • Explain - Explain the content of your code cell, ELI5 style.
  • Debug - Help you debug an error message in your code cell.
  • Complete - Help you complete a code snippet in your code cell.
  • Review - Provide a code review of your code cell.
  • Ask a question - Ask ChatGPT a custom question.
  • Voice command - Ask ChatGPT a custom question through your microphone.
    • Note: this requires an OpenAI API key and uses the OpenAI Whisper API, which charges $0.006 per minute.

Note: Ask a question and Voice command are a work-in-progress.

Project status: Stable - but developments happen frequently - if you run into problems or have feature suggestions --> Submit them as an issue!

Major acknowledgements:

Caveats & Warnings:

  • ChatGPT is amazing, however, it is not perfect and it does make mistakes. I consider ChatGPT to be a "keep your hands on the wheel and look at the road at all times" type of situation. You cannot blindly rely on it. Don't be surprised if it does any of the following:
    • Modify your code in unexpected ways
    • Generate code that does not work
    • Provide incorrect explanations & error explanations
    • Incorrectly highlight correct code as incorrect
  • In many cases you will get better results if you try a few times and pick the result you like best. ChatGPT likely can do what you want, but it might not be the first result it gives you.

Screenshot Gallery

ChatGPT - Format

ChatGPT - Explain

ChatGPT - Debug

ChatGPT - Complete

Installation

Install to Chrome/Edge

Install from Chrome Web Store (Preferred)

https://chrome.google.com/webstore/detail/chatgpt-jupyter-ai-assist/dlipncbkjmjjdpgcnodkbdobkadiejll

Local Install

  1. Download chromium.zip from Releases.
  2. Unzip the file.
  3. In Chrome/Edge go to the extensions page (chrome://extensions or edge://extensions).
  4. Enable Developer Mode.
  5. Drag the unzipped folder anywhere on the page to import it (do not delete the folder afterwards).

Install to Firefox

Local Install

  1. Download firefox.zip from Releases.
  2. Unzip the file.
  3. Go to about:debugging, click "This Firefox" on the sidebar.
  4. Click "Load Temporary Add-on" button, then select any file in the unzipped folder.

Build from source

  1. Clone the repo
  2. Install dependencies with npm
  3. npm run build
  4. Load build/chromium/ or build/firefox/ directory to your browser

Issues & Feature requests

Please report any issues or feature requests on the GitHub Issue tab. I will try to respond as soon as possible!

Outstanding items & Future plans

  • Add Jupyter Lab support
  • Refactor prompt engineering
  • Add copy-paste functionality and/or auto-adding
  • Add interupt button
  • Add integration tests

More Repositories

1

LearnPythonforResearch

This repository provides everything you need to get started with Python for (social science) research.
Jupyter Notebook
247
star
2

ipystata

Enables the use of Stata together with Python via Jupyter (IPython) notebooks.
Jupyter Notebook
192
star
3

limperg_python

Repository with material for the Limperg Python course by Ties de Kok.
Jupyter Notebook
148
star
4

Python_NLP_Tutorial

This repository provides everything to get started with Python for Text Mining / Natural Language Processing (NLP)
Jupyter Notebook
118
star
5

fast_xbrl_parser

An XBRL parser built in Rust that provides a fast, easy, and lightweight way to convert XBRL XML files into JSON or CSV.
Rust
33
star
6

chatgpt_paper

Code examples to accompany the paper: "ChatGPT for Textual Analysis? How to use Generative LLMs in Accounting Research"
Jupyter Notebook
24
star
7

UW_Python_Camp

Jupyter Notebook
19
star
8

fWHR_calculator

Facial Width Height Ratio (fWHR) calculator using Python
Jupyter Notebook
19
star
9

pydata_2023

Companion materials for my PyData 2023 talk on generative LLMs
Jupyter Notebook
17
star
10

acctg-579B-python-for-business-research

This is a standalone version of my former ACCTG 579B phd class on Python programming for business research.
Jupyter Notebook
16
star
11

NotebookOpener

Open and manage Jupyter (IPython) notebooks using different Python environments and working directories.
Python
9
star
12

gpt-prompt-example

This is a companion repository to my blog post contain Python code to show how to do zero shot, few shot, and fine-tuning using the OpenAI API.
Jupyter Notebook
8
star
13

xbrl-api-playground

Jupyter Notebook
8
star
14

jupyterlab_code_bookmarks

JupyterLab extension to add code bookmarking functionality
TypeScript
6
star
15

AccountingNLP_Slides

Repository containing the slides for a PhD course lecture on using Python and NLP for Accounting research
HTML
5
star
16

mnsc.2023.4670

Code repository for "How Resilient Are Firms’ Financial Reporting Processes?"
Jupyter Notebook
3
star
17

BristolPythonWorkshop2018

Jupyter Notebook
3
star
18

eaa_2023_nlp_workshop

Jupyter Notebook
3
star
19

blockchain_with_python

This Jupyter Notebook contains the Python code equivalent of the R code provided in the paper "Introduction to Blockchain With R" written by Theophanis Stratopoulos and Jesus Calderon.
Jupyter Notebook
2
star
20

TiesdeKok.github.io

HTML
1
star
21

foundry-vtt-macros

A personal collection of foundry vtt macros
JavaScript
1
star
22

limperg_python_2019

Jupyter Notebook
1
star
23

zoom-question-manager

This extension provides a dashboard to manage questions asked in the Zoom chat.
HTML
1
star
24

MAS_2022_textual_analysis

Jupyter Notebook
1
star