             interact_elt.text("(interacts not available)").addClass('lighten')
             return
 
+        f = (opts) =>
+            opts.mark = mark
+            @process_output_mesg(opts)
+
         # Call jQuery plugin to make it all happen.
-        interact_elt.sage_interact(desc:desc, execute_code:@execute_code, process_output_mesg:@process_output_mesg)
+        interact_elt.sage_interact(desc:desc, execute_code:@execute_code, process_output_mesg:f)
 
     jump_to_output_matching_jquery_selector: (selector) =>
         cm = @focused_codemirror()

                     cb()
             ])
            )()

        if mesg.done? and mesg.done
            output.removeClass('sagews-output-running')

                                @process_output_mesg
                                    mesg    : JSON.parse(mesg)
                                    element : elt
                                    mark    : mark
                            catch e
                                console.log(e.stack)
                                log("BUG: error rendering output: '#{mesg}' -- #{e}")
