Merge pull request #166 from SylvainCorlay/comm_list_shell_message

Adding comm_info method to kernel
Min RK 11 years ago
commit 0641b68d40

@ -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

Loading…
Cancel
Save