/usr/lib/python2.7/dist-packages/notebook/static/notebook/js/promises.js is in python-notebook 5.2.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | // Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
// Define promises for notebook events.
define(['base/js/events', 'base/js/promises'], function(events, promises) {
"use strict";
// Promise to be resolved when the notebook is *initially* loaded.
// The event may fire again if the notebook is reloaded later, but this
// promise only tracks the initial load.
promises.notebook_loaded = new Promise(function(resolve, reject) {
events.one('notebook_loaded.Notebook', function() {
resolve();
});
events.one('notebook_load_failed.Notebook', function() {
reject();
});
});
return promises;
});
|