mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-31 13:40:29 +08:00
Add rsvp to setupbase
This commit is contained in:
parent
26d012b3b7
commit
6ee932f298
@ -32,7 +32,14 @@ casper.open_new_notebook = function () {
|
||||
for (var i = 0; i < arguments.length; i++) {
|
||||
var value = arguments[i];
|
||||
if (value instanceof Object) {
|
||||
pretty_arguments.push(JSON.stringify(value, null, ' '));
|
||||
var name = value.name || 'Object';
|
||||
// Print a JSON string representation of the object.
|
||||
// If we don't do this, [Object object] gets printed
|
||||
// by casper, which is useless. The long regular
|
||||
// expression reduces the verbosity of the JSON.
|
||||
pretty_arguments.push(name + ' {' + JSON.stringify(value, null, ' ')
|
||||
.replace(/(\s+)?({)?(\s+)?(}(\s+)?,?)?(\s+)?(\s+)?\n/g, '\n')
|
||||
.replace(/\n(\s+)?\n/g, '\n'));
|
||||
} else {
|
||||
pretty_arguments.push(value);
|
||||
}
|
||||
|
@ -159,6 +159,7 @@ def find_package_data():
|
||||
pjoin(components, "jquery-ui", "themes", "smoothness", "images", "*"),
|
||||
pjoin(components, "marked", "lib", "marked.js"),
|
||||
pjoin(components, "requirejs", "require.js"),
|
||||
pjoin(components, "rsvp", "rsvp.js"),
|
||||
pjoin(components, "underscore", "underscore-min.js"),
|
||||
pjoin(components, "moment", "moment.js"),
|
||||
pjoin(components, "moment", "min", "moment.min.js"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user