This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# No more "Untitled12-final-final.ipynb"! | |
# A python script that ingests Jupyter Notebook cells and comes up with 10 relevant names to give it. | |
import nbformat | |
import openai | |
import argparse | |
def extract_cell_contents(notebook_path): | |
with open(notebook_path, "r", encoding="utf-8") as f: | |
notebook = nbformat.read(f, nbformat.NO_CONVERT) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.