From ba9c97481eda20043bd5547563e00ff5c98773d1 2014-10-22 00:14:05 From: Min RK Date: 2014-10-22 00:14:05 Subject: [PATCH] Merge pull request #6768 from jdfreder/remotetestfix Fix an issue in the `kernel_running` function of the JS tests, --- diff --git a/IPython/html/tests/util.js b/IPython/html/tests/util.js index 9e159a6..464751c 100644 --- a/IPython/html/tests/util.js +++ b/IPython/html/tests/util.js @@ -58,7 +58,10 @@ casper.page_loaded = function() { casper.kernel_running = function() { // Return whether or not the kernel is running. return this.evaluate(function() { - return IPython.notebook.kernel.is_connected(); + return IPython && + IPython.notebook && + IPython.notebook.kernel && + IPython.notebook.kernel.is_connected(); }); };