If kernel is broken, start a new session

pull/1669/head
Grant Nestor 10 years ago
parent 94428049cc
commit e8b6e65563

@ -2073,7 +2073,7 @@ import {ShortcutEditor} from 'notebook/js/shortcuteditor';
var success = $.proxy(this._session_started, this);
var failure = $.proxy(this._session_start_failed, this);
if (this.session !== null) {
if (this.session && this.session.kernel) {
this.session.restart(options, success, failure);
} else {
this.session = new session.Session(options);

Loading…
Cancel
Save