       catch e
         handle_exception e, compiled
 
-    $el: $el
+    output_cell
 
   opening_run_context = null
 


  export_notebook = (current_cell) ->
    lead_js_version: 0
    cells: current_cell.notebook.cells.filter((cell) -> cell != current_cell).map (cell) ->
      type: 'input'
      value: cell.editor.getValue()


      is_clean: -> editor.getValue() is '' and not @.used
      run: ->
        cell.used = true
        remove_cell cell.output_cell if cell.output_cell?
        cell.output_cell = run cell, editor.getValue()
        insert_cell cell.output_cell, after: cell
        cell.input_number = notebook.input_number++
        cell.$el.attr 'data-cell-number', cell.input_number
        cell.output_cell

    editor.lead_cell = cell

