From d06052c7885cad3b277611faa1e371cc9d4a5dcf 2014-11-18 19:29:35 From: Jonathan Frederic Date: 2014-11-18 19:29:35 Subject: [PATCH] Added comment describing output area stack. --- diff --git a/IPython/html/static/notebook/js/codecell.js b/IPython/html/static/notebook/js/codecell.js index fb958d2..966e992 100644 --- a/IPython/html/static/notebook/js/codecell.js +++ b/IPython/html/static/notebook/js/codecell.js @@ -80,6 +80,11 @@ define([ this.input_prompt_number = null; this.celltoolbar = null; this.output_area = null; + // Keep a stack of the 'active' output areas (where active means the + // output area that recieves output). When a user activates an output + // area, it gets pushed to the stack. Then, when the output area is + // deactivated, it's popped from the stack. When the stack is empty, + // the cell's output area is used. this.active_output_area = []; this.last_msg_id = null; this.completer = null;