       lead_string = lead.to_string object
       if $.type(object) == 'function'
         @cli.text "#{lead_string} is a Graphite function"
-        run_in_info_context @input_cell, "docs #{object.values[0]}"
+        run_before @input_cell, "docs #{object.values[0]}"
       else
         @cli.text "What do you want to do with #{lead_string}?"
         for f in ['data', 'graph', 'img', 'url']

    for cell in notebook.cells
      cell.active = false
    notebook.cells.length = 0

  cell_index = (cell) ->
    cell.notebook.cells.indexOf cell

    set_cell_value cell, opts.code if opts.code?
    cell

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

