##// END OF EJS Templates
This feature was discussed in #6123, but it doesn't look like anything was ever incorporated into the IPython Notebook....
This feature was discussed in #6123, but it doesn't look like anything was ever incorporated into the IPython Notebook. Here's a brief overview of the changes: - Display of messages from other clients can be toggled on and off from within a notebook, either using the ``<M-m>e`` keyboard shortcut in the web UI, or through the option in the "Kernel" menu. - notebook.js controls whether messages are displayed through a callback that is invoked from kernel.js when no callbacks are available for a message. - The UI displays ``execute_input`` messages originating from an other clients in new cells at the end of the notebook. Output messages (``execute_result`` et al.) will only be displayed if a cell exists with a matching message ID. Pending design questions: - Should each ``execute_input`` message cause a new cell to be created? - Should new cells be placed at the end of the notebook, or elsewhere? If the latter, what criteria should be followed?

File last commit:

r18928:251cf8d1
r19164:17ac8ca3
Show More
kernellist.js
55 lines | 1.5 KiB | application/javascript | JavascriptLexer
Jonathan Frederic
Finished making tree.html requirejs friendly
r17190 // Copyright (c) IPython Development Team.
// Distributed under the terms of the Modified BSD License.
define([
'base/js/namespace',
Jonathan Frederic
MWE,...
r17200 'jquery',
Jonathan Frederic
Finished making tree.html requirejs friendly
r17190 'tree/js/notebooklist',
Jonathan Frederic
Fix imports of "modules",...
r17202 ], function(IPython, $, notebooklist) {
Paul Ivanov
minimal KernelList
r15382 "use strict";
jon
In person review with @ellisonbg
r17210 var KernelList = function (selector, options) {
jon
Added some nice comments,...
r17211 // Constructor
//
// Parameters:
// selector: string
// options: dictionary
// Dictionary of keyword arguments.
// session_list: SessionList instance
// base_url: string
// notebook_path: string
jon
In person review with @ellisonbg
r17210 notebooklist.NotebookList.call(this, selector, $.extend({
MinRK
updates per review...
r17535 element_name: 'running'},
jon
In person review with @ellisonbg
r17210 options));
Paul Ivanov
minimal KernelList
r15382 };
Jonathan Frederic
Fix all the bugs!
r17203 KernelList.prototype = Object.create(notebooklist.NotebookList.prototype);
Paul Ivanov
minimal KernelList
r15382
Min RK
update add_duplicate_button with API changes...
r18928 KernelList.prototype.add_duplicate_button = function () {
// do nothing
};
Paul Ivanov
ok, Running tab is working now
r15454 KernelList.prototype.sessions_loaded = function (d) {
Paul Ivanov
added IPython.session_list...
r15479 this.sessions = d;
Paul Ivanov
ok, Running tab is working now
r15454 this.clear_list();
Min RK
update add_duplicate_button with API changes...
r18928 var item, path;
for (path in d) {
if (!d.hasOwnProperty(path)) {
MinRK
updates per review...
r17535 // nothing is safe in javascript
continue;
}
item = this.new_item(-1);
this.add_link({
Min RK
update add_duplicate_button with API changes...
r18928 name: path,
path: path,
MinRK
updates per review...
r17535 type: 'notebook',
}, item);
Paul Ivanov
ok, Running tab is working now
r15454 }
Paul Ivanov
use explicit running header name + jquery's toggle
r15512 $('#running_list_header').toggle($.isEmptyObject(d));
Jonathan Frederic
Finished making tree.html requirejs friendly
r17190 };
Paul Ivanov
ok, Running tab is working now
r15454
Jonathan Frederic
Finished making tree.html requirejs friendly
r17190 // Backwards compatability.
Paul Ivanov
minimal KernelList
r15382 IPython.KernelList = KernelList;
Jonathan Frederic
Return dicts instead of classes,...
r17201 return {'KernelList': KernelList};
Jonathan Frederic
Finished making tree.html requirejs friendly
r17190 });