import json


def _load_notebook(f):
    """ Load the ipython notebook as a dict.

    Parameters
    ----------
    f: str
        Path to the schema file.

    Returns
    -------
    dict
        json string representing the notebook file.
    """
    with open(f, 'r') as json_file:
        notebook = json.load(json_file)

    return notebook