import json


def cell_output(path, i_cell):
    """Returns the output of cell i_cell of notebook found at path."""
    with open(path, 'r') as f:
        nb_json = json.loads(f.read())
        outputs = nb_json['cells'][i_cell]['outputs']
        if outputs != []:
            return(outputs[0]['text'][0])
        else:
            return('No output.')