   run = (input_cell, string) ->
     output_cell = create_output_cell input_cell.notebook
 
-    run_context = create_run_context input_cell, output_cell
+    run_context = create_run_context output_cell, create_notebook_run_context input_cell
 
     run_in_context run_context, string
 

          scroll_to_top()

    run_context.cli = cli = bind_cli run_context

    run_context


      clear_output: -> clear_notebook notebook
      previously_run: -> input_cell_at_offset(input_cell, -1).editor.getValue()
      hide_input: -> hide_cell input_cell
      open_file: -> open_file_picker run_context
      export_notebook: -> export_notebook input_cell
      save: ->
