def sd(line, cell=None):
  """Implements the stackdriver cell magic for ipython notebooks.

  Args:
    line: the contents of the storage line.
  Returns:
    The results of executing the cell.
  """
  parser = google.datalab.utils.commands.CommandParser(prog='%sd', description=(
      'Execute various Stackdriver related operations. Use "%sd '
      '<stackdriver_product> -h" for help on a specific Stackdriver product.'))

  # %%sd monitoring
  _create_monitoring_subparser(parser)
  return google.datalab.utils.commands.handle_magic_line(line, cell, parser)
Implements the stackdriver cell magic for ipython notebooks.

  Args:
    line: the contents of the storage line.
  Returns:
    The results of executing the cell.