 
       cell.rendered()
 
+    # TODO cell type
     add_input_cell = (notebook, opts={}) ->
       if opts.reuse
         if opts.after?

      input_cell.$el.attr 'data-cell-number', input_cell.number
      input_cell.output_cell = output_cell

      run_context = context.create_run_context [input_cell.context, {input_cell, output_cell}, create_notebook_run_context input_cell]
      eval_coffeescript_into_output_cell run_context, string
      input_cell.notebook.cell_run.push input_cell

      $el.append $link
      $el.append $code
      $link.on 'click', ->
        eval_coffeescript_after cell.output_cell ? cell, 'permalink'

      editor = ed.create_editor $code.get 0

