       notebook
 
     update_view = (notebook) ->
-      # FIXME #163 can't call methods on component specs
-      notebook.component.set_cells notebook.cells
+      notebook.cells_model.set notebook.cells.slice()
 
     clear_notebook = (notebook) ->
       for cell in notebook.cells

        # reset the file picker so change is triggered again
        $file_picker.val ''

      document = DocumentComponent()
      # FIXME add file picker
      notebook =
        cells: []
        input_number: 1
        output_number: 1
        component: document

  _ = require 'underscore'
  CodeMirror = require 'cm/codemirror'
  URI = require 'URIjs'
  Bacon = require 'bacon.model'
  Editor = require 'editor'
  http = require 'http'
  graphite = require 'graphite'
