From 68ae9415dec6793db4f3f1a2377240c9f4ef3f3b Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Sat, 12 Dec 2015 01:11:43 +0100 Subject: [PATCH] Fix toggle line number on multiple selection, and command palette. --- notebook/static/notebook/js/notebook.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notebook/static/notebook/js/notebook.js b/notebook/static/notebook/js/notebook.js index 1dc51d304..317c4d004 100644 --- a/notebook/static/notebook/js/notebook.js +++ b/notebook/static/notebook/js/notebook.js @@ -1854,7 +1854,7 @@ define(function (require) { * Toggle line numbers in the selected cell's input area. */ Notebook.prototype.cell_toggle_line_numbers = function() { - this.get_selected_cell().toggle_line_numbers(); + this.get_selected_cells().map(function(cell, i){cell.toggle_line_numbers()}); };