Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions notebook/static/services/kernels/kernel.js
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,27 @@ define([
return this.send_shell_message("kernel_info_request", {}, callbacks);
};

Kernel.prototype.comm_info = function (target_name, callback) {
/**
* Get comm info
*
* @function comm_info
* @param callback {function}
*
* When calling this method, pass a callback function that expects one argument.
* The callback will be passed the complete `comm_info_reply` message documented
* [here](http://ipython.org/ipython-doc/dev/development/messaging.html#comm_info)
*/
var callbacks;
if (callback) {
callbacks = { shell : { reply : callback } };
}
var content = {
target_name : target_name,
};
return this.send_shell_message("comm_info_request", content, callbacks);
};

Kernel.prototype.inspect = function (code, cursor_pos, callback) {
/**
* Get info on an object
Expand Down