mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
move promise sync to kernelselector, from notebook
This commit is contained in:
parent
1028c8d192
commit
0e5ee5bc34
@ -2082,11 +2082,7 @@ define([
|
||||
this.notebook_name = utils.url_path_split(this.notebook_path)[1];
|
||||
this.events.trigger('notebook_loading.Notebook');
|
||||
this.contents.get(notebook_path, {type: 'notebook'}).then(
|
||||
function (data) {
|
||||
that.kernel_selector.loaded.then(
|
||||
that.load_notebook_success(data)
|
||||
);
|
||||
},
|
||||
$.proxy(this.load_notebook_success, this),
|
||||
$.proxy(this.load_notebook_error, this)
|
||||
);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user