From 8656f090716786b11ca6d10a62e288a0417f6350 2014-12-29 07:26:05 From: Min RK Date: 2014-12-29 07:26:05 Subject: [PATCH] update new notebook button with kernelspec changes display_name is in the spec, not top-level. --- diff --git a/IPython/html/static/tree/js/newnotebook.js b/IPython/html/static/tree/js/newnotebook.js index 4ab23bf..780921e 100644 --- a/IPython/html/static/tree/js/newnotebook.js +++ b/IPython/html/static/tree/js/newnotebook.js @@ -42,8 +42,8 @@ define([ this.kernelspecs = data.kernelspecs; var menu = this.element.find("#notebook-kernels"); var keys = Object.keys(data.kernelspecs).sort(function (a, b) { - var da = data.kernelspecs[a].display_name; - var db = data.kernelspecs[b].display_name; + var da = data.kernelspecs[a].spec.display_name; + var db = data.kernelspecs[b].spec.display_name; if (da === db) { return 0; } else if (da > db) { @@ -60,8 +60,8 @@ define([ $('') .attr('href', '#') .click($.proxy(this.new_notebook, this, ks.name)) - .text(ks.display_name) - .attr('title', 'Create a new notebook with ' + ks.display_name) + .text(ks.spec.display_name) + .attr('title', 'Create a new notebook with ' + ks.spec.display_name) ); menu.after(li); }