Show More
@@ -243,6 +243,24 var IPython = (function (IPython) { | |||||
243 | }; |
|
243 | }; | |
244 |
|
244 | |||
245 | /** |
|
245 | /** | |
|
246 | * Get kernel info | |||
|
247 | * | |||
|
248 | * @param callback {function} | |||
|
249 | * @method object_info | |||
|
250 | * | |||
|
251 | * When calling this method, pass a callback function that expects one argument. | |||
|
252 | * The callback will be passed the complete `kernel_info_reply` message documented | |||
|
253 | * [here](http://ipython.org/ipython-doc/dev/development/messaging.html#kernel-info) | |||
|
254 | */ | |||
|
255 | Kernel.prototype.kernel_info = function (callback) { | |||
|
256 | var callbacks; | |||
|
257 | if (callback) { | |||
|
258 | callbacks = { shell : { reply : callback } }; | |||
|
259 | } | |||
|
260 | return this.send_shell_message("kernel_info_request", {}, callbacks); | |||
|
261 | }; | |||
|
262 | ||||
|
263 | /** | |||
246 | * Get info on an object |
|
264 | * Get info on an object | |
247 | * |
|
265 | * | |
248 | * @param objname {string} |
|
266 | * @param objname {string} |
General Comments 0
You need to be logged in to leave comments.
Login now