##// END OF EJS Templates
Add example of using annotations in interact...
Add example of using annotations in interact The reason for using annotations is to use the syntax - our decorator has no advantages over passing kwargs to interact[ive]. So this adds a proper demo, with a 'Python 3 only' subheading.

File last commit:

r13538:7725c39f
r15187:695150ef
Show More
misc_tests.js
21 lines | 569 B | application/javascript | JavascriptLexer
//
// Miscellaneous javascript tests
//
casper.notebook_test(function () {
var jsver = this.evaluate(function () {
var cell = IPython.notebook.get_cell(0);
cell.set_text('import IPython; print(IPython.__version__)');
cell.execute();
return IPython.version;
});
this.wait_for_output(0);
// refactor this into just a get_output(0)
this.then(function () {
var result = this.get_output_cell(0);
this.test.assertEquals(result.text.trim(), jsver, 'IPython.version in JS matches IPython.');
});
});