From 20e9db4caeb92489a1c715e803402b1c1e91ba15 Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Thu, 1 Nov 2018 15:57:53 +0000 Subject: [PATCH] Fix selector for new kernel menu entry --- notebook/static/notebook/js/kernelselector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {