       $el.append $link
       $el.append $code
       $link.on 'click', ->
-        run_after cell.output_cell ? cell, 'permalink'
+        eval_coffeescript_after cell.output_cell ? cell, 'permalink'
 
       editor = ed.create_editor $code.get 0
 

      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

      cell

    # run an input cell above the current cell
    eval_coffeescript_before = (current_cell, code) ->
      cell = add_input_cell current_cell.notebook, code: code, before: current_cell
      run cell

    eval_coffeescript_after = (current_cell, code) ->
      cell = add_input_cell current_cell.notebook, code: code, after: current_cell
      run cell

