From 6f1694d6b3e594066bc0b562b9fadba2115c85f1 Mon Sep 17 00:00:00 2001 From: "Jessica B. Hamrick" Date: Thu, 29 Oct 2015 11:16:50 -0700 Subject: [PATCH] Select cell after executing, not in loop --- notebook/static/notebook/js/notebook.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/notebook/static/notebook/js/notebook.js b/notebook/static/notebook/js/notebook.js index 488a46d5b..4d9aca960 100644 --- a/notebook/static/notebook/js/notebook.js +++ b/notebook/static/notebook/js/notebook.js @@ -1992,10 +1992,11 @@ define(function (require) { var cell; for (var i = 0; i < indices.length; i++) { - this.select(indices[i]); cell = this.get_cell(indices[i]); cell.execute(); } + + this.select(indices[indices.length - 1]); }; /**