##// END OF EJS Templates
Shut down kernels in parallel...
Shut down kernels in parallel When stopping the notebook server, it currently sends a shutdown request to each kernel and then waits for the process to finish. This can be slow if you have several kernels running. This makes it issues all the shutdown requests before waiting on the processes, so shutdown happens in parallel. KernelManager (and MultiKernelManager) gain three new public API methods to allow this: * request_shutdown (promoted from a private method) * wait_shutdown (refactored out of shutdown_kernel) * cleanup (refactored out of shutdown_kernel)

File last commit:

r15201:029ac024
r16510:633371e5
Show More
markdown.js
36 lines | 1.3 KiB | application/javascript | JavascriptLexer
David Wyde
Add CasperJS utility functions, and tests for code and...
r13249 //
// Test that a Markdown cell is rendered to HTML.
//
Paul Ivanov
pep8 style function names
r13275 casper.notebook_test(function () {
David Wyde
Add tests for Markdown toolbar and menubar entries.
r13254 // Test JavaScript models.
var output = this.evaluate(function () {
David Wyde
Add CasperJS utility functions, and tests for code and...
r13249 IPython.notebook.to_markdown();
var cell = IPython.notebook.get_selected_cell();
cell.set_text('# Foo');
cell.render();
return cell.get_rendered();
});
MinRK
marked now adds ids to header tags
r14178 this.test.assertEquals(output, '<h1 id=\"foo\">Foo</h1>', 'Markdown JS API works.');
David Wyde
Add tests for Markdown toolbar and menubar entries.
r13254
// Test menubar entries.
output = this.evaluate(function () {
$('#to_code').mouseenter().click();
$('#to_markdown').mouseenter().click();
var cell = IPython.notebook.get_selected_cell();
cell.set_text('# Foo');
$('#run_cell').mouseenter().click();
return cell.get_rendered();
});
MinRK
marked now adds ids to header tags
r14178 this.test.assertEquals(output, '<h1 id=\"foo\">Foo</h1>', 'Markdown menubar items work.');
David Wyde
Add tests for Markdown toolbar and menubar entries.
r13254
// Test toolbar buttons.
output = this.evaluate(function () {
$('#cell_type').val('code').change();
$('#cell_type').val('markdown').change();
var cell = IPython.notebook.get_selected_cell();
cell.set_text('# Foo');
$('#run_b').click();
return cell.get_rendered();
});
MinRK
marked now adds ids to header tags
r14178 this.test.assertEquals(output, '<h1 id=\"foo\">Foo</h1>', 'Markdown toolbar items work.');
David Wyde
Add CasperJS utility functions, and tests for code and...
r13249 });