             cell.output_area.clear_output(false, true)
             cell.output_area.trusted = !!obj.metadata.trusted
             cell.output_area.fromJSON(obj.outputs ? [], obj.metadata)
+
         if cell.cell_type == 'markdown' and cell.rendered
             do_rerender_cell = true
 


class JupyterNotebook extends EventEmitter
    constructor: (@parent, @filename, opts={}) ->
        window.w = @
        opts = @opts = defaults opts,
            read_only         : false
            mode              : undefined   # ignored
            default_font_size : 14          # set in editor.coffee
            cb                : undefined   # optional
        @project_id = @parent.project_id
        @editor = @parent.editor
        @read_only = opts.read_only

            index += 1

    mutate_cell: (index, obj) =>
        # dbg = @dbg("mutate_cell")([index, obj])
        ###
        NOTE: If you need to work on this function, here's how to get an instance
        of this class. In the Javascript console, get access to this editor.  I typically
        do this by putting a line of code like window.w = @ in the constructor
        for class JupyterNotebook.

        For example, this then gets the first cell:

            w.dom.nb.get_cell(0)

        (and w.dom.nb.get_cell(0).element is the underlying DOM element)

        You can then mess around with this until you get it to work.
        ###
