diff --git a/IPython/html/static/notebook/js/menubar.js b/IPython/html/static/notebook/js/menubar.js index 72b41e4..d3840fc 100644 --- a/IPython/html/static/notebook/js/menubar.js +++ b/IPython/html/static/notebook/js/menubar.js @@ -105,9 +105,11 @@ define([ var parent = utils.url_path_split(that.notebook.notebook_path)[0]; that.contents.new_untitled(parent, {type: "notebook"}).then( function (data) { - w.location = utils.url_join_encode( - that.base_url, 'notebooks', data.path - ); + var url = utils.url_join_encode( + that.base_url, 'notebooks', data.path + ); + url += "?kernel_name=" + that.notebook.kernel.name; + w.location = url; }, function(error) { w.close();