Skip to content

Instantly share code, notes, and snippets.

import openai
import os
from IPython.core.getipython import get_ipython
openai.api_key = "YOUR_API_KEY_HERE"
prompt_hist = ""
def create_new_cell(contents):
shell = get_ipython()
payload = dict(