def parse_notebook()

in Example-Project/utils.py [0:0]


def parse_notebook(input_file, output_file, bucket, path):
    '''
    Main function to parse a single notebook file
        Finds the placements
        Finds the clean rows
        Writes these to a tsv file, then to S3
    '''    
    
    # data is all of the raw data from the file
    # placements is a hashmap of indices within that massive object, specifying markdown or code
    # place list is a str combining the two
    data, placements, place_list = get_cell_placements(input_file)
    
    # returns only the cell indices for clean markdown and/or code
    rows = get_rows(placements, place_list)
    
    write_rows(rows, data, output_file, bucket, path)
        
    return