import json


def LoadNotebook(filename):
  """Read a IPython notebook (.ipynb).

  Reads the file and parses it as JSON.

  Args:
    filename: The path to the .ipynb file.

  Returns:
    A parsed JSON object (dictionary).
  """
  with open(filename) as f:
    return json.load(f)