From 794ef1892058002e2bc37e827db9252341bea7fa Mon Sep 17 00:00:00 2001
From: Bussonnier Matthias <bussonniermatthias@gmail.com>
Date: Tue, 25 Nov 2014 11:36:00 +0100
Subject: [PATCH] get cell correctly in nested context

fix some extensions like live_reveal

the .not('.cell .cell') part prevent the potential selection of DOM
elelment that would have the class cell from any output. In each branch
of the dom we thus select the first decendent node that have the class
'.cell'.
---
 IPython/html/static/notebook/js/notebook.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/IPython/html/static/notebook/js/notebook.js b/IPython/html/static/notebook/js/notebook.js
index e1db7ad38..4eecc1997 100644
--- a/IPython/html/static/notebook/js/notebook.js
+++ b/IPython/html/static/notebook/js/notebook.js
@@ -379,7 +379,7 @@ define([
      * @return {jQuery} A selector of all cell elements
      */
     Notebook.prototype.get_cell_elements = function () {
-        return this.container.children("div.cell");
+        return this.container.find(".cell").not('.cell .cell');
     };
 
     /**