/usr/lib/python2.7/dist-packages/notebook/static/notebook/js/about.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 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | // Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
require([
'jquery',
'base/js/dialog',
'base/js/i18n',
'underscore',
'base/js/namespace'
], function ($, dialog, i18n, _, IPython) {
'use strict';
$('#notebook_about').click(function () {
// use underscore template to auto html escape
if (sys_info) {
var text = i18n.msg._('You are using Jupyter notebook.');
text = text + '<br/><br/>';
text = text + i18n.msg._('The version of the notebook server is: ');
text = text + _.template('<b><%- version %></b>')({ version: sys_info.notebook_version });
if (sys_info.commit_hash) {
text = text + _.template('-<%- hash %>')({ hash: sys_info.commit_hash });
}
text = text + '<br/>';
text = text + i18n.msg._('The server is running on this version of Python:');
text = text + _.template('<br/><pre>Python <%- pyver %></pre>')({
pyver: sys_info.sys_version });
var kinfo = $('<div/>').attr('id', '#about-kinfo').text(i18n.msg._('Waiting for kernel to be available...'));
var body = $('<div/>');
body.append($('<h4/>').text(i18n.msg._('Server Information:')));
body.append($('<p/>').html(text));
body.append($('<h4/>').text(i18n.msg._('Current Kernel Information:')));
body.append(kinfo);
} else {
var text = i18n.msg._('Could not access sys_info variable for version information.');
var body = $('<div/>');
body.append($('<h4/>').text(i18n.msg._('Cannot find sys_info!')));
body.append($('<p/>').html(text));
}
dialog.modal({
title: i18n.msg._('About Jupyter Notebook'),
body: body,
buttons: { 'OK': {} }
});
try {
IPython.notebook.session.kernel.kernel_info(function (data) {
kinfo.html($('<pre/>').text(data.content.banner));
});
} catch (e) {
kinfo.html($('<p/>').text(i18n.msg._('unable to contact kernel')));
}
});
});
|