diff --git a/notebook/static/notebook/js/kernelselector.js b/notebook/static/notebook/js/kernelselector.js index 41c4ee4bcc..aec4e08657 100644 --- a/notebook/static/notebook/js/kernelselector.js +++ b/notebook/static/notebook/js/kernelselector.js @@ -104,7 +104,7 @@ define([ this.current_selection = ks.name; // put the current kernel at the top of File > New Notebook - var cur_kernel_entry = $('.new-notebook-kernel[data-kernel-type="' + ks.name + '"'); + var cur_kernel_entry = $('.new-notebook-kernel[data-kernel-type="' + ks.name + '"]'); var parent = cur_kernel_entry.parent(); // do something only if there is more than one kernel if (parent.children().length > 1) {