mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
created a kernel_running method
This commit is contained in:
parent
755565019d
commit
e971d051ed
@ -29,10 +29,13 @@ casper.open_new_notebook = function () {
|
||||
// initially, the cells aren't created, so wait for them to appear
|
||||
this.waitForSelector('.CodeMirror-code');
|
||||
// and make sure the kernel has started
|
||||
this.waitFor(function kernel_ready() {
|
||||
return this.evaluate(function kernel_ready() {
|
||||
return IPython.notebook.kernel.running;
|
||||
});
|
||||
this.waitFor( this.kernel_running );
|
||||
};
|
||||
|
||||
// return whether or not the kernel is running
|
||||
casper.kernel_running = function kernel_running() {
|
||||
return this.evaluate(function kernel_running() {
|
||||
return IPython.notebook.kernel.running;
|
||||
});
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user