From ca9b8e02e42ad93253c27fe204540072319e26a9 2015-01-09 03:26:16 From: Mathieu Date: 2015-01-09 03:26:16 Subject: [PATCH] create new notebook with same kernel --- 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();