 
       # scan changes for the side effect in recompile
       # we have to subscribe so that the events are sent
-      cell.changes.debounce(200).scan([], CoffeeScriptCell.recompile).onValue ->
+      cell.editor_changes.debounce(200).scan([], CoffeeScriptCell.recompile).onValue ->
 
       cell
 

        notebook: notebook
        context: create_input_context notebook
        used: false
        editor: editor
        changes: Editor.as_event_stream editor, 'change'

      editor.lead_cell = cell
      component = InputCellComponent {cell}

      remove_cell input_cell.output_cell if input_cell.output_cell?
      insert_cell output_cell, after: input_cell
      input_cell.number = input_cell.notebook.input_number++
      input_cell.changes.push input_cell
      input_cell.output_cell = output_cell

      # TODO cell type
